Re: a question about cin
- From: David Wilkinson <no-reply@xxxxxxxxxxxx>
- Date: Wed, 09 Nov 2005 06:39:12 -0500
Jefe wrote:
Tnx Ulrich for you reply but now I have another problem, my Visual Studio.Net compiler says there is an error at "while (cin >>s)" line and it said that "error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)" what should I do now????
You should make sure you are including the correct header files. As Jochen indicated, you should have:
#include <string> #include <iostream> using namespace std;
If you were using
#include <iostream.h>
you need to get yourself a new book on C++.
HTH,
David Wilkinson .
- Follow-Ups:
- Re: a question about cin
- From: Ulrich Eckhardt
- Re: a question about cin
- References:
- Re: a question about cin
- From: Ulrich Eckhardt
- Re: a question about cin
- Prev by Date: Re: Creating an edit control with a border?
- Next by Date: Re: Creating an edit control with a border?
- Previous by thread: Re: a question about cin
- Next by thread: Re: a question about cin
- Index(es):
Relevant Pages
|