Program initiated successfully
This is the start of the program. We are using cout to display this message. Ple
ase press enter to continue after each code block has been executed.
This part of the program will use 'int' to declare variables with user input. Pl
ease, enter a number.
3
The number you entered will be displayed right now: 3 See?
So now we seen an example of how the code will enter a value through cin, and re
place the value of the variable with your input. This is a local variable assign
ment. It can constantly change as I will show you in a few moments.
Please enter another value for a.
4
The variable 'a' is now: 4 instead the previous number you entered
Now we will move onto assigning two variables at once for an 'int'. Please enter
two numbers into the prompt. Place a space between each number please.
2 3
The numbers you entered are: 2 and 3.
Now we will take these numbers and begin using math to solve different types of
problems.
2 x 3 equals: 6
2 + 3 equals: 5
2 - 3 equals: -1
2 / 3 equals: 0.666667
Now I will demonstrate how the 'if' statement works well with passwords or other
various program functions.
Lets pay a little game here, lets imagine you are in a role playing game and you
have several options to choose from. Lets call them:
1.Attack
2.Defense
3.Magic
Go on, choose one by using numerical values
4
!Error! Unknown Command!!Error! Unknown Command!
!Error! Unknown Command!
!Error! Unknown Command!
!Error! Unknown Command!
!Error! Unknown Command!