View Full Version : C Compiler
cancer10
07-12-2008, 12:18 PM
Hi,
Just wondering if Borland C++ Compiler version 5.5 (http://dn.codegear.com/article/20633) works for C language also?
If not, can u plz refer me with a similar free C compiler?
Thanx
techietim
07-12-2008, 01:02 PM
This free IDE is for C and C++
http://www.bloodshed.net/devcpp.html
And yes, that compiler you're asking about does do regular C
cancer10
07-12-2008, 02:05 PM
ok I downloaded Bloodsheed Dev C++
I am trying to run this code
#include <stdio.h>
int main()
{
printf("\n");
printf("Hello World");
printf("\n");
}
It compiles ok, and a DOS screen comes for a few milliseconds and disappears.
Why is this hapenning? And How/Where do I see the output?
Sorry, I am new to C.
Thanx
Master_script_maker
07-13-2008, 02:02 PM
because the window will close as soon as the code is done. i don't know about c but in c++ you use cin.get(); which pauses the script and waits for the user to press any key
Also, in c++ you can also use: system("PAUSE");
Master_script_maker
07-13-2008, 05:14 PM
yes but that is os dependent and not to standards
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.