Apr 20th, 2006, 6:23 PM
|
#9
|
|
Programmer
Join Date: Apr 2006
Location: Calgary, Alberta
Posts: 67
Rep Power: 3 
|
Quote:
|
Originally Posted by nnxion
In regular C++ that would not work either, you need to use the std namespace.
Cstring/string.h is not what you want, those are just functions to C strings (i.e. char arrays).
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str = "bla";
return 0;
} If you remove the "using namespace std" line, you will see the same errors you currently have. Alternatively you can use std::string.
|
Got it, thanks.
|
|
|