Error in the programe plz help out

i have installed Visual Studio 2010 i am writing code in c++ so when i build it
http://i56.tinypic.com/av4txs.png
What is getchar ();? I use Code::Blocks with the MinGW compiler, and there is no such function in the iostream file.
While his use of getchar is a problem, that is not why he is getting the error. There is probably a problem in the builder or linker.
I think he's just trying to run the program without having it actually compiled first.
It's a precompiled header problem as noted in the build error message,
He should either:

1. turn off the use of precompiled headers

OR

2. #include "stdafx.h" as the first include.
(If stdafx.h is not present, then he should make one - an empty one would do - and include that)
From the image:
Build FAILED
. It looks like he tried to build and run it, but it wouldn't build, then it wouldn't run because there is no program to run. So, why would it not build?
It's what I said..
Yeah, you posted like a minute before me, so I didn't know that your solution even existed until I reloaded the page after posting. My bad I guess.
Yeah I noticed - but I was on a roll.
Topic archived. No new replies allowed.