Hi,I wonder how to connect 2 strings in c++ under Unix?
I tried strcat,and the code got stuck(no compiling error,though).
This is what I'm doing:
char* s1="bin";
char* s2="***";
...
cout<<strcat(s1,s2)<<endl;
simply doesn't work! The execution stops at the strcat.
I tried strcat,and the code got stuck(no compiling error,though).
This is what I'm doing:
char* s1="bin";
char* s2="***";
...
cout<<strcat(s1,s2)<<endl;
simply doesn't work! The execution stops at the strcat.