ok i'm storing the first name in one array and the last name in a second array.
i then add the two arrays (strcat) to get the full name.
It works fine.
But then, i have a function that recalls the main function.
But when i call it back, it doesn't give me the occasion to input the first name and goes directly to the input of the last name.
Is it because i did not clear my first array in which I stored both arrays?
here's some of the code:
void yourname (char n4[150], char n5[150]) {
cout << "What is your first name?" << endl;
cin.getline (n4,150,'\n');
cout << "And what is your last name?" << endl;
cin.getline (n5,150,'\n');
strcat (n4, " ");
strcat (n4, n5);
cerr << "Hi " << n4 << "!" << endl;
cout << endl;
cout << endl;
_sleep(1000);
}