This shows you the differences between two versions of the page.
cs-142:basic-input [2016/08/29 16:58] kseppi created |
cs-142:basic-input [2016/08/29 17:13] (current) kseppi |
||
---|---|---|---|
Line 1: | Line 1: | ||
<code cpp> | <code cpp> | ||
#include<iostream> | #include<iostream> | ||
- | #include<iomanip> | ||
- | #include<string> | ||
using namespace std; | using namespace std; | ||
Line 8: | Line 6: | ||
int main() { | int main() { | ||
- | cout << endl << "\tCIN:\n\n"; | ||
- | |||
- | // from last time: | ||
int favorite_number; | int favorite_number; | ||
- | cout << "Please give me your favorite number:"; | + | cout << "Please tell me your favorite number:"; |
cin >> favorite_number; | cin >> favorite_number; | ||
- | cout << "\nHey, I know you, your favorite number is " << favorite_number << endl; | + | cout << endl << "Hey, I know you, your favorite number is " << favorite_number << endl; |