- 2

Challenge for all..Print "Hello World" Program without using "cout" object,but it should print "Hello world"Statement.👍

challenge......👍🙅

28th Nov 2016, 4:59 PM
Arun Vishwakarma
Arun Vishwakarma - avatar
13 Antworten
+ 4
#include <iostream> using namespace std; int main() { //two ways clog<<"hello\n"; cerr<<"world"; return 0; }
28th Nov 2016, 5:47 PM
Remmiq Sliv
Remmiq Sliv - avatar
+ 4
maybe like this, ostream obj (std::cout); obj <<"hello world"; In this directly I am not using the cout but whereas I am using memory of cout. Added the sample code in my code playground. If you want check it. Hope this is what you're looking for
28th Nov 2016, 6:36 PM
Venkatesh(Venki)
Venkatesh(Venki) - avatar
+ 2
hey brother....u must know that......printf and cout is the one and the same things😂 just difference is language ok! so u should have to write without any "cout" and "printf"..........on dare to solve this...👍👍
28th Nov 2016, 5:33 PM
Arun Vishwakarma
Arun Vishwakarma - avatar
+ 2
Tx @av editor👌
29th Nov 2016, 4:09 AM
Remmiq Sliv
Remmiq Sliv - avatar
+ 1
just include the <stdio.h> just like marco did
28th Nov 2016, 5:34 PM
Anicetus Umenwaniri
Anicetus Umenwaniri - avatar
+ 1
#include<stdio.h> int main(){ puts("hello world"); return 0; }
28th Nov 2016, 8:58 PM
Łukasz D
Łukasz D - avatar
+ 1
hey brother Marco Linde you are absolutely coreect...bczss u r not used any type of cout obj....u jaust used the obj of ostream cerr......that i expected...its nyc answer...👍👍👍
29th Nov 2016, 1:04 AM
Arun Vishwakarma
Arun Vishwakarma - avatar
+ 1
brother Marco Linde just delete your comment from this answer......beacause someone see that and copy to answer this question.....👍ok brother
29th Nov 2016, 1:11 AM
Arun Vishwakarma
Arun Vishwakarma - avatar
+ 1
Actually tukasz answer is also right. He didn't use printf, cout statements right.
29th Nov 2016, 5:26 AM
Venkatesh(Venki)
Venkatesh(Venki) - avatar
0
Is this supposed to be a challenge, or what?
28th Nov 2016, 5:20 PM
Rill Chritty
Rill Chritty - avatar
0
ya should be supposed to be challenge brother...👤👍
28th Nov 2016, 5:34 PM
Arun Vishwakarma
Arun Vishwakarma - avatar
0
noooo its not like micro...just different logic!!!
28th Nov 2016, 5:37 PM
Arun Vishwakarma
Arun Vishwakarma - avatar
0
venkatesh(venki) brother u are also correct but r using cout,i know you are refering there address but this answer was not expected to me...in any how you should not to be used "cout"...either address nor object....without cout...i dont wanna see "cout" word in program....👍
29th Nov 2016, 1:09 AM
Arun Vishwakarma
Arun Vishwakarma - avatar