A simple C program writen in Visual c++ 2010 that dosen`t work!
#include "conio.h"
main()
{
putch(getch()) ;
}
I am a noob i know:)!
In C++,
main() is just plain wrong. main returns an int;
int main()
conio.h is not a part of standard C++ and you have no guarantee that your compiler came with it.
Your main function should return an int.
Start here:
http://cplusplus.com/doc/tutorial/
Topic archived. No new replies allowed.