UnhappyPlease Help me

Posts 16–23 of 23 · Page 2 of 2
Quote Originally Posted by skulhead View Post
Before: return 0;
Typ: char f;
cin >> f;
That's kind of a stupid way to do it.
Quote Originally Posted by mookamoka3 View Post
That's kind of a stupid way to do it.
But it works.
Quote Originally Posted by skulhead View Post
But it works.
Yes, but would you also add an else statement that does nothing?
Quote Originally Posted by Hell_Demon View Post
thats because console applications are ment to be run from cmd(start>run>cmd)

You can add a cin.get(); right before the last return in main(), then i'll stop there untill you press enter
Tank you man i love you so much ( No Homo )
Quote Originally Posted by Zack View Post
Tank you man i love you so much ( No Homo )
How you got it to work man because i added what he said and it failed so i decided to add before the return 0;
Quote Originally Posted by iAreHDWhore View Post
How you got it to work man because i added what he said and it failed so i decided to add before the return 0;
This is how you do it


Code:
#include <iostream>

int main()
{
         // write to the screen
        std::cout << "Hello World!";
        return 0;
}
That should work.
Quote Originally Posted by xFishx View Post
Code:
#include <iostream>

int main()
{
         // write to the screen
        std::cout << "Hello World!";
        return 0;
}
That should work.
He already figured it out...
Posts 16–23 of 23 · Page 2 of 2

Post a Reply

Tags for this Thread

None

Talk with us