1
0
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:
Matt Kline
2014-10-17 00:03:33 -07:00
parent 8e9d5af1ea
commit eadecf8b95

View File

@@ -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";
} }