0 Members and 1 Guest are viewing this topic.
int promptForInt( const string &promptString ) { // initialize function int response; // output prompt string cout << promptString; // input user response cin >> response; // return user response return response; }
cout << "Enter second test number: "; cin >> TestTwo;
int promptForInt( const string &"Enter second test number: ");
Im doing this in my computer class too..My doing the beginning part though so Im a noob at it atm..int main()return}{someshit like that im doing..
int main(){return 0;}
int promptForInt( const string &promptString )
What happens if you just do: Code: [Select]int userInput = promptForInt("Enter second test number: ");
int userInput = promptForInt("Enter second test number: ");
string outputText = "Enter second test number: ";int userInput = promptForInt(outputText);
VARIABLE = int promptForInt( "Enter second test number here: " );
SMF 2.0.19 | SMF © 2021, Simple Machines