Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / my projects close right after I run them.

Author
Message
Outerblob
15
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 4th Aug 2009 15:53
I really don't know why this is happening. any input will help. Thanks!

Why change the the world when it changes itself?
Drowneath
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location: In your eyes
Posted: 4th Aug 2009 16:08 Edited at: 4th Aug 2009 16:09
Please post your code too.
Otherwise you won't get any answer.

if(asleep) sheep++;
Outerblob
15
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 4th Aug 2009 16:26


I was just messing around. That's the code.

Why change the the world when it changes itself?
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 4th Aug 2009 16:40
Well, there's nothing telling the program to pause before exiting.

Put
system("pause");
Right before main() returns.

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
Drowneath
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location: In your eyes
Posted: 4th Aug 2009 16:57 Edited at: 4th Aug 2009 17:01
or maybe an empty cin before main returns.



if(asleep) sheep++;
Outerblob
15
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 4th Aug 2009 17:48
No, branflakes fixed my problem. thanks!

Why change the the world when it changes itself?
Outerblob
15
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 4th Aug 2009 19:35
I have a quick question, can you use more than one if statement in a code? If not, what is an alternate statement that you can use?

Why change the the world when it changes itself?
Funkbrotha10
15
Years of Service
User Offline
Joined: 2nd May 2009
Location:
Posted: 4th Aug 2009 19:38
you can use as many if's and elseif's or else's as you want as long as the logic makes sense

it was once said that a million monkeys at a million keyboards could re-produce the works of shakespear...
Now thanks to the internet we know that that is not true
Outerblob
15
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 4th Aug 2009 19:45
Oh yeah... Anyways, I fixed my code.

Why change the the world when it changes itself?

Login to post a reply

Server time is: 2024-10-01 10:36:53
Your offset time is: 2024-10-01 10:36:53