Posts

Showing posts from November, 2022

C++ script - Maps associate container | erase function | upper_bound and lower_bound functions

Image
Note: I would appreciate your support of this blog by going to the link below to "Buy me a pizza" so that I may continue to provide educational scripts, resources and general tech stuff. 🍕 Thank you. https://www.buymeacoffee.com/infosec_coder ----------------------------------------------------------------------------------------- This program was created using Visual Studio for the IDE. To view an image below clearly, you may right click > open image in new tab> in the new tab, your cursor will turn into a crosshair symbol > left click > will zoom in on script. ------------------------------------------------------------------------------------------- OUTPUT OUTPUT II ------------------------------------------------------------------------------------------- Script - I  Script - II Script - III Script - IV    Script - V Script - VI    

Python script - Office supply program

Image
This script is a very basic script to understand how to work with Python.  The Office Supply program asks for user input and then provides a menu to for the end user to select from.  There is an authentication prompt to verify the user as well as an authorization code required for the end user to enter to verify he/she has permission to purchase the supplies. ===================================================== This was made in Visual Studio Code within a virtual environment. The most important commands in working with your virtual environment are: 1. Create your virtual environment > py -m venv env 2. Activate your virtual environment > env\Scripts\activate 3. Go to View > select Command Palette > Select Python Interpreter > (env:venv)     3. Run your application > py main.py ===================================================== Screenshot I         Screenshot II     Screenshot III   Screenshot IV     Screenshot V    ________________________________________________

C++ script - Map associative container | update key value-pairs using 'swap' function and 'find' function.

Image
I used the following resources for colour coding: https://www.daniweb.com/programming/software-development/code/216345/add-a-little-color-to-your-console-text ------------------------------------------------------------------------------------------ The following script: - Asks for user input to swap map1 and map2 key-value pairs using the 'swap' function. - Asks for user input to swap map1 and map2 key-value pairs using the 'find' function. This program was created using Visual Studio for the IDE. To view an image below clearly, you may right click > open image in new tab> in the new tab, your cursor will turn into a crosshair symbol > left click > will zoom in on script. ------------------------------------------------------------------------------------------- OUTPUT ------------------------------------------------------------------------------------------- main.cpp To view an image below clearly, you may right click > open image in new tab> in the