Differences

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

Link to this comparison view

Both sides previous revision Previous revision
cs-142:escape-sequences [2016/08/29 19:21]
kseppi
cs-142:escape-sequences [2016/08/30 00:41] (current)
kseppi
Line 1: Line 1:
 <code cpp> <code cpp>
 #​include<​iostream>​ #​include<​iostream>​
 + 
 using namespace std; using namespace std;
 + 
 int main() { int main() {
-  +  
- int favorite_number;+ cout << "Test Lines:"​ << endl; 
 + cout << endl; 
 + cout << "​1\tText after tab" << endl; 
 + cout << "​12\tText after tab" << endl; 
 + cout << "​123\tText after tab" << endl; 
 + cout << "​1234\tText after tab" << endl; 
 + cout << "​12345\tText after tab" << endl; 
 + cout << "​123456\tText after tab" << endl; 
 + cout << "​1234567\tText after tab" << endl; 
 + cout << "​12345678\tText after tab" << endl; 
 + cout << "​123456789\tText after tab" << endl; 
 + cout << endl; 
 + cout << "Now using tabs to format a list:" << endl; 
 + cout << endl;
  cout << "A list of ingredients:"​ << endl;  cout << "A list of ingredients:"​ << endl;
- cout << "\t3/4 C.\tRice flour & 1/4 C. Amaranth flour & ½ C. Sweet Sorghum\n";​ + cout << "\t3/4 C\t\tRice flour & 1/4 C. Amaranth flour & ½ C. Sweet Sorghum\n";​ 
- cout << "\t1/2 C.\tPotato Starch\n";​ + cout << "\t1/2 C\t\tPotato Starch\n";​ 
- cout << "\t3/4 C.\tTapioca Flour (I am still playing with this, shifting to more tapioca, and less nutritious grain)\n";​ + cout << "\t3/4 C\t\tTapioca Flour (I am still playing with this, shifting to more tapioca)\n";​ 
- cout << "\t1/3 C.\tCornstarch + cout << "\t1/3 C\t\tCornstarch\n"; 
- cout << "\t1 1/3 rounded T.\tXanthan gum \"Pond scum\"​\n";​ + cout << "\t1 1/3 rounded T\tXanthan gum \"Pond scum\"​\n";​ 
- cout << "\t2 T.\tsugar\n";​ + cout << "\t2 T\t\tsugar\n";​ 
- cout << "\t1 rounded tsp.\tsalt\n";​ + cout << "\t1 rounded tsp\tsalt\n";​ 
- cout << "\t1/3 heaping cup\t dry milk\n";​ + cout << "\t1/3 heaping cup\tdry milk\n";​ 
 + 
 cout << endl; cout << endl;
 + 
  return 0;  return 0;
 } }
 </​code>​ </​code>​
cs-142/escape-sequences.txt · Last modified: 2016/08/30 00:41 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