Thread: C newbie help

  1. #1
    Registered User
    Join Date
    Jun 2006

    C newbie help

    Hi im new to C programming, so i dont know much..
    I have downloaded the compiler Miricle C which is simple and easy to use.
    I then tested out the good old Hello World code

    void main()
    printf("Hello, world!");
    I then followed the instructions by

    Then a black box came up which should contain the output of my Code, but it flashes up for about a second then goes again.
    Can anyone help me with the problem please.

  2. #2

  3. #3
    ... kermit's Avatar
    Join Date
    Jan 2003
    First up, you might want to consider not starting with a compiler like Miracle C. Try an IDE like Dev C++ (Works for C programs as well).

    Second, your question is answered here and here.

    Finally, main returns an int, and should be declared as such. You can read all about this matter in the appropriate FAQ.

    Last edited by kermit; 06-18-2006 at 06:58 PM.

  4. #4
    Registered User
    Join Date
    Jun 2006
    Thanks you guys!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newbie: array question :(
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-09-2008, 06:46 AM
  2. getting to grips with allegro and ms vc++ (newbie)
    By jimjamjahaa in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2005, 07:49 PM
  3. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 12:53 PM
  4. C++ newbie / linux not so newbie question
    By goldmonkey in forum C++ Programming
    Replies: 7
    Last Post: 12-13-2003, 12:27 PM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 02:02 PM