View Single Post
Old 03-27-2003, 07:33 PM   #4 (permalink)
alpha
Regular Contributor
 
Join Date: Feb 2003
Posts: 120
alpha is on a distinguished road
Send a message via AIM to alpha
if you add getch(), you need to #include <conio.h>

but if you want to stay standard, use std::cin.get(); this is for c++ however. so getch() and system calls will be okay, i think. but for c, it'll be
Code:
#include <stdlib.h>
for c++, it'll be cstdlib, like abc123 posted.

it outputs in a MS-DOS window because it is a console application. graphics/windows apps are not standard c/c++. if you are new to c, you need to learn programming concepts first before thinking about win32api.

the DOS window is compiler independent, project dependent.

as for other compilers, I haven't used Miracle C, but it might be okay. I use mingw 3.2 mostly, which can be found at www.mingw.org , and sometimes Borland Bcc55, www.borland.com . These are two commonly used compilers, borland and gcc/g++.

As for Dev-c++, it uses the mingw compiler. It's a pretty good IDE, many people use it. I'm waiting for v5 to be final, though.

Best of luck! and enjoy programming.

Also, welcome to codenewbie!
alpha is offline   Reply With Quote