Thread: Can Some help me?

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    8

    Can Some help me? agian...please....

    Ok, i am a complete noob at this so PLEASE dont flame me for asking such a dumb question.....ok wen i code a program i compile it and it saves as "project1.exe" ok....well when i go to open it i double click on it and nothing happens....i really dont know what the problem is .....it compiled without any errors....please help...the FAQ section sure didnt ...thanx ~jakedude777~
    Last edited by jakedude777; 08-21-2006 at 12:52 AM.

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Most likely the program finishes faster than you can see it. Should the program be waiting for input from you? If not, it will simply execute then close itself.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  3. #3
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    As cat said, it's most likely just running through the program before you see it. Try adding a cin.get() to pause the program right before the return 0 at the end of main. Another option is to run the program from the command line. Open cmd.exe, navigate to the appropriate directory, and type your programs name.
    Sent from my iPadŽ

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    thanx a lot guys! much appriciated.

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    o crap...still not working it already had that in it but it just loads quick then its done....will u look at the code (its in a tutorial) i would post it here but i dont understand wut those tag things r...http://www.cprogramming.com/tutorial/lesson1.html

  6. #6
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Which segment is it? All of those should compile and run fine so long as you have them exactly as is.
    Sent from my iPadŽ

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    yea....i made sure i copied them corectly and i tried all 3....and another one from a different lesson....should i try a different compiler?

  8. #8
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Hmm, which compiler?
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  9. #9
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    im curenly using dev-c++ 4.9.9.2 ......im looking on download.com for more tho....

  10. #10
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    No, that should be fine, then. I noticed you created a project to do these, though. I'm thinking maybe you set it up wrong. Here's what I want you to do. Close the project, open the source code file (.cpp) and try compiling that by itself, then open that.
    Sent from my iPadŽ

  11. #11
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    still nothing....ive tried everything ive even searched for the .exe file for it and tried to open that
    do you have msn or aim....?

  12. #12
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    i got it

Popular pages Recent additions subscribe to a feed