I have the following code, and am trying to copy an array of charactes from one variable to another:
"name" is declared somewhere else in the program, as char[15]..Code:char name[15]; int age; cout << "Name:"; cin.getline(n, 15); cout << "Age:"; cin >> a; age = a; strcpy(name, n);
The error i'm getting is that "strcpy" is an undeclared identifier.