My code is as follows
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include
#include \"stdafx.h\"
You have #include "stdafx.h"
, which usually means that you're using a precompiled header. If you use a precompiled header, anything preceding the precompiled header will be discarded.
Try reordering your #include
lines so that "stdafx.h"
is first. (Or change stdafx.h
to #include <windows.h>
, which is generally where you want to put commonly-used system headers.)