Commandline Compile and Run of C program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ariharan
    New Member
    • Aug 2007
    • 20

    Commandline Compile and Run of C program

    Explain me how to compile and run a C program in commandline(Win dows XP Turbo C++ Version 3.0)
    The program must also accept commandline arguments...
    Explain with example program to read a number from user at command line and prints number of digits...Please expalin how to compile and run in command line
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    This smells suspiciously of homework.

    You should be able to research enough to create a program that will accept command line arguments, and I'm also sure there is documentation (probably on the site you downloaded your compiler from) that will allow you to compile a cpp file from the command line. Try looking for it (Google is a good place to start), and let us know what you find.

    Comment

    • Simonius
      New Member
      • Feb 2008
      • 47

      #3
      ... did you really just copy your homework?

      A bit of advice, those are relatively easy things to do.
      Check the homepage of your compiler and use google.

      Comment

      • Ariharan
        New Member
        • Aug 2007
        • 20

        #4
        Hello I am engineering student.
        I hav good programming skills
        I know to handle command line arguments
        My problem is wat command i should type to compile my C prigram.Previou sly i used Turbo C+= 3.0 IDE which allows to compile by Alt+F9...Dont think its my homework..If u know pls answer else not criticse others without knowing the fact

        Comment

        Working...