I keep getting "Hello World" when I run a program.

This is a discussion on I keep getting "Hello World" when I run a program. within the C Programming forums, part of the General Programming Boards category; I brand new to Code Blocks. I am not posting any code here because I do not think the code ...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Location
    Virginia
    Posts
    2

    I keep getting "Hello World" when I run a program.

    I brand new to Code Blocks. I am not posting any code here because I do not think the code is the problem. I am doing something wrong and do not understand why Code Blocks is calling and running the default "Hello World" program. When I close Code Block, reopen it, and then select my program, it runs fine. But when I click Empty File, enter code, click Build, then click Run, I get "Hello World."

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    2,331
    When you create a new project, do you go to "file -> open -> main.c" (in the directory of the current project)?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    2,565
    Turn on Full Compiler Logging
    FAQ - CodeBlocks

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by Matticus View Post
    When you create a new project, do you go to "file -> open -> main.c" (in the directory of the current project)?
    Going on with this: make sure you are creating a new project, and not just adding to the default "Hello World" project.

  5. #5
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    I had such a problem some months ago, where my most recent changes weren't being automatically saved...in c::B.
    Are you adding the default hello world program...modifying it and compiling ...skipping the saving part..if it doesn't happen automatically?
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  6. #6
    Registered User
    Join Date
    Jul 2011
    Location
    Virginia
    Posts
    2
    Thanks, everyone!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 10-25-2010, 11:43 PM
  2. I don't get "hello, world" program!
    By Ravens'sWrath in forum C Programming
    Replies: 12
    Last Post: 05-06-2007, 03:41 AM
  3. error after compiling "hello world" win program !
    By Meshal in forum Windows Programming
    Replies: 2
    Last Post: 12-01-2006, 12:53 PM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 07:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 06:59 AM

Tags for this Thread


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