Greetings.
Umm, refering to the first post, I'd like to make some ammendments.
If you'd like to let's say maintain cin>>FullTimePartTime;
just before a cin.getline(...), you should clear your input buffer first.
Use fflush(stdin); to do that, and your cin.getline will not skip.
#include <iostream>
#include <string>
using namespace std;
int main()
{
char key;
using namespace std;
char FullTimePartTime;
char response[256];
cout << "\n\nDO YOU NEED TO CALCULATE FULLTIME OR PARTIME EXPENSES? ";
cin >>FullTimePartTime;
fflush(stdin);
cout << endl;
cout << "What is your name? ";
cin.getline(response,256);
if (strlen(response) == 0)
cout << "\nYou must tell me your name...";
else
cout << "It's nice to meet you, " << response;
cout << "\ntype a key and hit return ";
getchar();
return 0;
}
Hope it helps.