My code does not allow me to enter the string I want to copy. The first line is how many times it is copied and the second line is the string to be printed.
int main() {
int n;
char str[1000];
cin >> n;
cout << "\n";
cin.ignore(); // removes extra '\n' character from stream
cin.getline(str, 1000);
for (int a = 0; a < n; a++) cout << str;
return 0;
}