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