? / professional-program-21-StringContainers-StringExample.c
include <string> include <iostream> using namespace std; int main(int argc, char** argv) { string str1; str1.insert(str1.end(), 'h'); str1.insert(str1.end(), 'e'); str1.insert(str1.end(), 'l'); str1.insert(str1.end(), 'l'); str1.insert(str1.end(), 'o'); for (string::const_iterator it = str1.begin(); it != str1.end(); ++it) { cout << *it; } cout << endl; return (0); }
(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.