0

Is it possible to print---- hello world on the screen without using semicolon( ; ) anywhere in the code...i was able to do it through MACROS..but is there anyother way??

4
Contributors
6
Replies
8
Views
12 Years
Discussion Span
Last Post by Paul.Esson
0

[Oooooh, when will these questions cease to poison new programmers...?]

Yes. Hone your Googling skills if you are out of hints. [Bonus: Google the groups. Don't make me mention comp.lang.c (ooops!).]

0

Use a different programming language :)

Nice Answer :lol:

0

Use an empty while loop.

empty while loop did worked but stuck into infinite loop

while(cout<<"Hello World")
{
}
0

Try

#include <iostream>

int main(){
        while((std::cout << "Hello World"<< std::endl) == 0){}

}

I would assume that like most things cout would return a +ive int if it has success :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.