mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 22:37:42 +02:00
Spell out favorite (instead of fav) in C++ doc
This commit is contained in:
@@ -157,13 +157,13 @@ int main()
|
|||||||
int myInt;
|
int myInt;
|
||||||
|
|
||||||
// Prints to stdout (or terminal/screen)
|
// Prints to stdout (or terminal/screen)
|
||||||
cout << "Enter your fav number:\n";
|
cout << "Enter your favorite number:\n";
|
||||||
// Takes in input
|
// Takes in input
|
||||||
cin >> myInt;
|
cin >> myInt;
|
||||||
|
|
||||||
// cout can also be formatted
|
// cout can also be formatted
|
||||||
cout << "Your fav number is " << myInt << "\n";
|
cout << "Your favorite number is " << myInt << "\n";
|
||||||
// Your fav number is ##
|
// prints "Your favorite number is <myInt>"
|
||||||
|
|
||||||
cerr << "Used for error messages";
|
cerr << "Used for error messages";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user