I've written the following code using Visual C++, Console Based application for Win32.
The code gives "Compiler Error C2065 'identifier' : undeclared identifier".
What could be the reson for this to happen?
#include <iostream.h>
#include <string.h>
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
char *s="Hello world";
cout<<strstr(s, "wo")<<endl;
string s( "TEST" );
return 0;
}
Start Free Trial