topical media & game development
professional-program-13-CppStrings-CppStrings.c
? /
professional-program-13-CppStrings-CppStrings.c
include <string>
include <iostream>
using namespace std;
int main(int argc, char** argv)
{
string myString = "hello";
myString += ", there";
string myOtherString = myString;
if (myString == myOtherString) {
myOtherString[0] = 'H';
}
cout << myString << endl;
cout << myOtherString << endl;
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.