I never said remove it, I told you to create the correct type of project. It looks like you have not created a console application project because if you had then you wouldnt have that include.
You are creating the wrong type of project, create a console project and copy/paste the code (without the stdafx include) and recompile. You were already helped regarding this issue in this thread: http://www.cplusplus.com/forum/beginner/136020/#msg724625