#include using namespace std; int strcpy (char s[], char p[] ) { int i; for ( i = 0; p[i] != '\0'; i++) s[i] = p[i]; s[i] = '\0'; }//end strcpy int main() { char s[30]; char p[30]; cin.getline(p, 29, '\n'); strcpy(s,p ); cout << s << endl; system("pause"); return 0; }