GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — programming-c-cpp-learning/string2.cpp at master · eeyoo/programming-c-cpp-learning Expand file tree/ Copy pathstring2.cppMore file actions 26 lines (20 loc) · 443 Bytes / Copy pathstring2.cppFile metadata and controls26 lines (20 loc) · 443 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 #include <iostream> #include <string> using namespace std; int main() { string str1 = "Hello"; string str2 = "World"; string str3; int len; // copy str1 to str3 str3 = str1; cout << "str3 : " << str3 << endl; // connect str1 to str2 str3 = str1 + str2; cout << "str3 : " << str3 << endl; // get length of str3 len = str3.size(); cout << "str3.size() : " << len << endl; return 0; } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |