Hi ok I'll get right to the question code:
[code]
// This is the main project file for VC++ application project
// generated using an Application Wizard.
#include "stdafx.h"
#using #include #include #include #include // This is the entry point for this application
int _tmain(void)
{
string test = "hello";
cout<<test<<endl;
}
[/code]
I get errors:
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
Can anybody help??? Thanx
BattleGuard
[hr]
[size=3]You're looking at my sig, means that you wanna to steal it. Is that it? Well this stuff is now copyrighted.[/size]
[size=3]Copyright(r) TM(r) by BattleGuard inc.[/size]
:-D
Comments
:
: [code]
: // This is the main project file for VC++ application project
: // generated using an Application Wizard.
:
: #include "stdafx.h"
:
: #using
: #include
: #include
: #include
: #include
[red]using namespace std;[/red]
:
:
: // This is the entry point for this application
: int _tmain(void)
: {
: string test = "hello";
:
: cout<<test<<endl;
: }
: [/code]
:
: I get errors:
:
: error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
:
: Can anybody help??? Thanx
:
: BattleGuard
: [hr]
: [size=3]You're looking at my sig, means that you wanna to steal it. Is that it? Well this stuff is now copyrighted.[/size]
:
: [size=3]Copyright(r) TM(r) by BattleGuard inc.[/size]
: :-D
: