anshelm
03-29-2002, 09:33 AM
Hi all, I'"m a newbie to this forum, and a somewhat newbie-ish programmer.
I wrote a program to take input from the keyboard, determine what the first word was, and do something with the rest of the line based on this.
example:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string bob;
cout << "$ ";
cin >> noskipws >> bob;
...
}
But gcc 2.96 doesn't recognize the manipulator 'noskipws'. Any suggestions, since it is part of the C++ standard?
[ 29 March 2002: Message edited by: anshelm ]
[ 29 March 2002: Message edited by: anshelm ]
I wrote a program to take input from the keyboard, determine what the first word was, and do something with the rest of the line based on this.
example:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string bob;
cout << "$ ";
cin >> noskipws >> bob;
...
}
But gcc 2.96 doesn't recognize the manipulator 'noskipws'. Any suggestions, since it is part of the C++ standard?
[ 29 March 2002: Message edited by: anshelm ]
[ 29 March 2002: Message edited by: anshelm ]