string

string

Anonymous
Not applicable
231 Views
1 Reply
Message 1 of 2

string

Anonymous
Not applicable
I can include the -header.

But when I use it, the compiler complains with the following error :

error C2065:'string' : undeclared identifier.

Anyone know what's the problem?

--
Greetz,

Giuliano
0 Likes
232 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
is a STL-header.
You have to set the namespace:

using namespace std;
or
define variables as
std::string MyVar;
...

J.Arnold

> I can include the -header.
>
> But when I use it, the compiler complains with the following error :
> error C2065:'string' : undeclared identifier.
> Anyone know what's the problem?
>
> --
> Greetz,
>
> Giuliano
>
>
0 Likes