Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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;
  
  
cs-142/basic-input.txt ยท Last modified: 2016/08/29 17:13 by kseppi
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0