Help Please!!!

Hey guys, im using visual c++ and when i want to use 'getchar' i use the 'stdio.h' header, but in this website http://www.cprogramming.com/fod/getchar.html it says that stdio header for getch is only in c, and cstdio header is for c++ But for me its the other way around, cstdio doesnt work but stdio does, why?

and yes i am a beginner! :)
In C++ both stdio.h and cstdio works. In C only stdio.h will work. Visual Studio will compile .c files with C compiler and .cpp files with C++ compiler (this behavior could be changed in project settings).
Topic archived. No new replies allowed.