May 30 - 2009 7:44 PM
I want:
the solution I found
C++ vs VC++ http://www.sharkyforums.com/archive/index.php/t-91725.html
Classic c++ vs VS c++ http://www.daniweb.com/forums/thread155363.html
for C++ strings: string input, other = "\\Someplace\\Data\\file.dat", result; cin >> input; result = input+other; for C strings: char *input= new char[/*here the maximum length for the input string*/], *other="\\Someplace\\Data\\file.dat", *result; cin >> input; result = new char[strlen(input)+strlen(other)]; sprintf(result,"%s%s",input,other);