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??
SpS 34 Posting Pro
Recommended Answers
Jump to Post[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!).]
Jump to PostTry
#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 :)
All 6 Replies
Rashakil Fol 978 Super Senior Demiposter Team Colleague
Dave Sinkula 2,398 long time no c Team Colleague
Rashakil Fol 978 Super Senior Demiposter Team Colleague
SpS 34 Posting Pro
SpS 34 Posting Pro
Paul.Esson 53 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.