more getline problmes
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
string words, dummy;
int borb;
cout << "Enter Input: ";
getline(cin, words);
cin >> borb;
cout << words << endl;
return 0;
}
When I add the cin after the getline, it gives be problems, i have to type in more stuff and hit enter again before it ontinues on, any ideas?
Ian
|