#include "stdafx.h" #include "iostream" #include <string> using namespace std; #include <ctype.h> int _tmain(int argc, _TCHAR* argv[]) { //std::cout<<"come here"<<std::endl; //char s1[30] = "I love"; //char *s2 = "C++"; //stringcat(s1,s2); //std::cout<<s1<<std::endl; string a = "www."; a.append("baidu"); cout<<a<<endl; string b = "."; b += "com"; cout<<b<<endl; cout<<a.append(b)<<endl; system("pause"); return 0; } //char *stringcat(char *source,const char *dest) //{ // //}