#include <string>
#include <iostream>
int main(){
string s= "Application";
return 0;
}
What am i doing wrong, I get an error message saying 'string undeclared
identifier'. This used to work.
William DePalo [MVP VC++] - 10 Dec 2006 19:38 GMT
> #include <string>
> #include <iostream>
[quoted text clipped - 7 lines]
> What am i doing wrong, I get an error message saying 'string undeclared
> identifier'. This used to work.
Try
std::string s = "Application";
then look up name spaces in your favorite C++ reference.
Regards,
Will
Peter Ritchie [C# MVP] - 10 Dec 2006 19:47 GMT
Standard C++ library 101... Try std::string instead, or add a using
namespace directive after your includes: "using namespace std;"

Signature
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> #include <string>
> #include <iostream>
[quoted text clipped - 7 lines]
> What am i doing wrong, I get an error message saying 'string undeclared
> identifier'. This used to work.
David Anton - 11 Dec 2006 00:00 GMT
C++/CLI:
String ^s = "Application";
or:
System::String ^s = "Application";

Signature
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
> #include <string>
> #include <iostream>
[quoted text clipped - 7 lines]
> What am i doing wrong, I get an error message saying 'string undeclared
> identifier'. This used to work.