C++ – programming c++ code in VC++

visual c++

when I am trying to compile a program in c++ with VC++

first the compiler was not able to locate stdafx.h then I downloaded SDK.

then lots of error started generating e.g.

c:\program files\microsoft visual studio 9.0\vc\include\cstring(25) : warning C4091: '' : ignored on left of 'unsigned int' when no variable is declared
c:\program files\microsoft visual studio 9.0\vc\include\cstring(26) : error C2039: 'memcpy' : is not a member of 'std'

there are many such member that I want to use,

such as

std ::size_t; using ::memchr; using ::memcmp;
std ::memcpy; std ::memmove; std ::memset;
std ::strcat; std ::strchr; std ::strcmp;
std ::strcoll; std ::strcpy; std ::strcspn;
std ::strerror; std ::strlen; std ::strncat;
std ::strncmp; std ::strncpy; std ::strpbrk;
std ::strrchr; std ::strspn; std ::strstr;
std ::strtok; std ::strxfrm;

is there any way I can modify this code to run with VC++ compiler.

Best Answer

You're missing includes don't you?

Related Topic