+ 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.
11 ответов
+ 11
#include<iostream>
int main()
{
cout<<"Hello world";
return 0;
}
it is enough actually
+ 10
some compilers will not accept namespace
+ 6
Turbo C++ is really outdated 😑😑😑, use Code blocks or eclipse or NetBeans, Clion, Visual studio
+ 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;
}
+ 5
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world";
cin.get();
cin.get();
return 0;
}
+ 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()
{
....
}
+ 3
I enjoy using visual studio.
Why don't you try it?
https://www.sololearn.com/discuss/410578/?ref=app
+ 2
It is you computers way of telling you,
to stop using turbo C++
+ 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++
+ 1
in Turbo c++ the following code might work
#include<iostream.h>
#include<conio.h>
void main()
{
cout<<"Hello World";
getch();
}