Noob Questioln

This is a discussion on Noob Questioln within the C Programming forums, part of the General Programming Boards category; Hey all, I just started programming in C about....twelve hours ago lol. I'm still on my first program (you know, ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    2

    Noob Questioln

    Hey all, I just started programming in C about....twelve hours ago lol. I'm still on my first program (you know, the one where you get the computer to type out "Hello, world!"). Now I am pretty sure that my code is correct, but for some reason when I execute the program, the DOS window comes up but then it automatically shuts down...it does it so fast that the dos window flashes instead of staying open.

    I'm running Windows XP, and I'm starting to think that its not the fault of my code but rather my system. Any help here?

    Heres my code, btw:

    Code:
    #include <stdio.h>
    
    int main()
    {
     printf("Hello brave new world!\n");
     return 0;
    }
    Thanks for any assistance

  2. #2
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    You could do some other things as well, read your compiler's faq.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    2
    Oh thanks, I wish I had seen that earlier.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Noob in need of help.
    By gec5741 in forum C++ Programming
    Replies: 18
    Last Post: 01-23-2009, 02:25 PM
  2. Noob Questions...
    By Firemagic in forum C++ Programming
    Replies: 4
    Last Post: 04-19-2006, 03:57 PM
  3. noob needs help!!!!:(
    By tykenfitz in forum C Programming
    Replies: 1
    Last Post: 07-10-2005, 08:49 AM
  4. Just a little request from a noob...
    By Lee134 in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 03-18-2005, 04:45 AM
  5. noob: compiling error... plz help!
    By chosii in forum C Programming
    Replies: 2
    Last Post: 05-10-2002, 05:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21