0

I'm using turbo c++ and i type the "hello world" code and it doesn't work

why???

20th Nov 2016, 1:21 PM
daffa satria
daffa satria - avatar
5 odpowiedzi
+ 2
#include<iostream> int main() { std::cout<<"Hello World!"; return 0; } Please check your spelling of using in using namespace std; line and no space between 0 and return.
20th Nov 2016, 2:59 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
you must write like this std::cout<<"Hello World";
20th Nov 2016, 1:21 PM
MerzaT
MerzaT - avatar
0
#include<iostream> usinh namespace std; int main() { cout<<"Hello World!"; return0; } still can't run or compile
20th Nov 2016, 1:25 PM
daffa satria
daffa satria - avatar
0
If that is a copy paste of your code, you have usinh instead of using, making your cout be undefined. Fix that or use std:: in front of cout like daffa said.
20th Nov 2016, 2:20 PM
scott johnson
scott johnson - avatar
0
add getchar(); before return 0; so the black console doesnt disappear quickly. you should be avle to see hello world.
20th Nov 2016, 4:06 PM
Franky BrainBox
Franky BrainBox - avatar