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:more-data-types-work [2016/09/10 21:22]
kseppi
cs-142:more-data-types-work [2016/09/10 21:35] (current)
kseppi
Line 24: Line 24:
  string fullName = firstName + " " + lastName;  string fullName = firstName + " " + lastName;
  cout << "my full name is " << fullName << endl;  cout << "my full name is " << fullName << endl;
 + // Remember that this works:
 + cout << "Some sum! " << 23 + 34 << endl;
 + // But this will not:
 + // cout << "​Failed Concatination:​ " << "​some"​+"​more"​ << endl;
 +
  // string can be tell us more than just their contents:  // string can be tell us more than just their contents:
  int nameLength = fullName.length();​  int nameLength = fullName.length();​
cs-142/more-data-types-work.txt ยท Last modified: 2016/09/10 21:35 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