Results 1 to 3 of 3

Thread: C "int main(int,char**) {return 0;}" program)

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    54

    C "int main(int,char**) {return 0;}" program)

    How do i make a "dummy exe" using:


    C "int main(int,char**) {return 0;}" program)

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: C "int main(int,char**) {return 0;}" program)

    Compile the code.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: C "int main(int,char**) {return 0;}" program)

    said a different way, The following is code:

    Code:
    int main(int,char**) 
    {
       return 0;
    }

    You can compile this with a C compiler and the result will be an exe program. The program will do nothing other than return a value of 0 to the operating system.

    (Most C++ compilers will also compile C.

    This seems like a good time to mention that I've written beginning level books on doing C and C++. The C book would explain the above code for you. (Sams Teach Yourself C in 21 Days)

    Brad!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width