You can go with GCC (or MinGW) for windows, and the RHIDE (for more borland 3.1 look) or CodeBlocks IDEs. You have to select the project type "Console Application".
Borland compilers are very old, about 15 years old, and do not correspond to the new ISO standard. You should upgrade to GCC (or MinGW) or Microsoft Visual Studio (Express 2005 is free).