DIGIT-ARC read-only archive · snapshot: July 23, 2026

c LANGUAGE ANOTHER PROB

9 posts · originally from https://geek.digit.in/community/threads/c-language-another-prob.26413/

M
makarand Original post #1
Apr 2, 2006 at 12:42 PM
Hey guys,
I use bloodshed c editor on your advice. I made a program for speed, distance and time. but when i use 'clrscr();' function it does not work. what is wrong.
another thing
How can i make the program work without opening the editor
S
Apr 2, 2006 at 2:23 PM
First you should note that conio.h is a Borland extension, NOT a standard header, so Dev-C++ and MinGW are in no way required to support it. The MinGW included with Dev-C++ 4.9.9.1 comes with a very reduced version of conio.h (no clrscr, gotoxy, etc); if you need more then you can use the native Windows console functions.
In Dev C++ you can use system("CLS") to do the trick, the old DOS command. Include the stdlib.h for the system() function.
An unofficial DevC++ FAQ website also provides and maintains an updated version of conio (and also winbgim) at *www14.brinkster.com/aditsu/console/ - that may be what you are looking for.


Regarding your second question - please elaborate... Are you asking for command line compiling? If you who prefer to use your own editor, download the command-line version of MinGW at *csjava.occ.cccd.edu/~gilberts/mingw/ instead. If you asking about running compiled program outside the IDE, you should find the created executable and run it - I dont think you need the IDE to run it...

Arun
::vicky::
Apr 2, 2006 at 10:22 PM
u can use turbo if u r addicted to clrscr()
mayanksharma
Apr 3, 2006 at 12:11 AM
yeah same advice here.
M
Apr 3, 2006 at 8:08 AM
Thanks guys but how can i run turbo c on XP
d'you have any suggestions for that?
and yes i wanted to run the program outside the IDE
MysticHalo
Apr 3, 2006 at 9:07 PM
makarand said:
How can i make the program work without opening the editor

U dont need to open the editor once the program is compiled and linked. Just run the .exe file created, thats it.
If u want to use clrscr();, then get Borland cmd line compiler.
shakti
shakti #7
Apr 5, 2006 at 9:37 PM
ya u can run .exe directly.

For makin exe in turbo c simply press F9.
Garbage
Garbage #8
Apr 5, 2006 at 11:46 PM
u can also create a Project in which u can include ur header, lib files in ur .exe file
ilugd
ilugd #9
Apr 6, 2006 at 12:59 AM
try this. Include the standard library header file and use the system call. Messy, but works

#include <stdlib.h>
system("cls");