c LANGUAGE ANOTHER PROB

Discussion in 'Software Q&A' started by makarand, Apr 2, 2006.

Thread Status:
Not open for further replies.
  1. makarand

    makarand New Member

    Joined:
    Jul 12, 2005
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. sakumar79

    sakumar79 Active Member

    Joined:
    Nov 28, 2004
    Messages:
    2,445
    Likes Received:
    9
    Trophy Points:
    38
    Location:
    Madurai
    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 http://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 http://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
     
  3. ::vicky::

    ::vicky:: New Member

    Joined:
    Feb 23, 2006
    Messages:
    306
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    0X4B7H
    u can use turbo if u r addicted to clrscr()
     
  4. mayanksharma

    mayanksharma New Member

    Joined:
    Mar 30, 2006
    Messages:
    598
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Noida/NCR
    yeah same advice here.
     
  5. OP
    OP
    makarand

    makarand New Member

    Joined:
    Jul 12, 2005
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  6. MysticHalo

    MysticHalo Your Maker.

    Joined:
    Jan 3, 2006
    Messages:
    397
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    mumba][
    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.
     
  7. shakti

    shakti New Member

    Joined:
    Jun 16, 2005
    Messages:
    120
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    visnagar
    ya u can run .exe directly.

    For makin exe in turbo c simply press F9.
     
  8. Garbage

    Garbage God of Mistakes...

    Joined:
    Dec 26, 2005
    Messages:
    1,909
    Likes Received:
    8
    Trophy Points:
    0
    Location:
    Pune, Maharashtra
    u can also create a Project in which u can include ur header, lib files in ur .exe file
     
  9. ilugd

    ilugd Beware of the innocent

    Joined:
    Dec 25, 2005
    Messages:
    1,009
    Likes Received:
    3
    Trophy Points:
    0
    try this. Include the standard library header file and use the system call. Messy, but works

    #include <stdlib.h>
    system("cls");
     
Thread Status:
Not open for further replies.

Share This Page