What does it mean when a integer variable has a word value
hello thier guys i just started learning programing langauge today so i have a few questions that the tutorials im using dont tell me
K so lets say this is the program
Code:
//Including Cout function
#include <iostream>
//Using standard library
using namespace std;
int main()
{
int password;
cout<<"Please enter the password: ";
cin>> password;
cin.ignore(); // wat does this Piece of code mean?
cout<<"You entered: "<< password <<"\n";
cin.get();
}
K lets say the user types in potion i got the reply back you typed in
2147340288
How does Potion = 2147340288?
Thanks matsp and MacGyver