+ 5

I am trying to write the basic coding program "hello world" but it isn't taking it in my computer in Turbo C++. Why?

It is showing different errors and warning plz help.

23rd Jul 2017, 11:34 AM
Pratham Pandey
Pratham Pandey - avatar
11 Antworten
+ 11
#include<iostream> int main() { cout<<"Hello world"; return 0; } it is enough actually
23rd Jul 2017, 12:28 PM
HarshithaReddy
HarshithaReddy - avatar
+ 10
some compilers will not accept namespace
23rd Jul 2017, 12:32 PM
HarshithaReddy
HarshithaReddy - avatar
23rd Jul 2017, 3:09 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
Turbo C++ is really outdated 😑😑😑, use Code blocks or eclipse or NetBeans, Clion, Visual studio
23rd Jul 2017, 12:13 PM
LordGhostX
LordGhostX - avatar
+ 5
//use this code for turbo and stop using it.It's outdated #include <iostream.h> #include <conio.h> int main() { clrscr(); cout << "Hello World !"; getch(); return 0; }
23rd Jul 2017, 12:04 PM
‎ ‏‏‎Anonymous Guy
+ 5
#include <iostream> using namespace std; int main() { cout << "Hello world"; cin.get(); cin.get(); return 0; }
23rd Jul 2017, 12:31 PM
LordGhostX
LordGhostX - avatar
+ 4
You should write as this in turbo c++ : #include<iostream.h> //declare all req header files like this and don't use namespace void main() { .... }
23rd Jul 2017, 1:26 PM
Lakshay
Lakshay - avatar
+ 3
I enjoy using visual studio. Why don't you try it? https://www.sololearn.com/discuss/410578/?ref=app
23rd Jul 2017, 12:47 PM
Manual
Manual - avatar
+ 2
It is you computers way of telling you, to stop using turbo C++
23rd Jul 2017, 12:45 PM
Manual
Manual - avatar
+ 1
for beginners i would recommend turbo c++ . and in your program you should use #include<iostream.h> its needed to specify the " .h " extension of header files.... and press shift + f1 on windows in turbo c++ it provides help for build in functions , keywords and header files .. it also have in-build graphics library , so you can learn graphics as well and can take help from turbo c++
12th Aug 2017, 3:31 PM
Gaurav
Gaurav - avatar
+ 1
in Turbo c++ the following code might work #include<iostream.h> #include<conio.h> void main() { cout<<"Hello World"; getch(); }
14th Aug 2017, 6:29 AM
vikram pareek
vikram pareek - avatar