123456789101112131415161718
#include <iostream> #include <string> using namespace std; int main() { char tmp[15]; char tmp2[15]; cin.getline(tmp, 15); strcpy(tmp,tmp2); cout<<tmp2; system("pause"); return 0; }
strcpy ( destination, source );
strcpy(tmp,tmp2)
strcpy(tmp2,tmp);
system("pause")
cin.sync(); cin.ignore();