The code wont work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The code wont work

I tried writing the "hello world" code in turbo c++ but it wont run and popped 3-4 errors when all i did was copy it the same way!

3rd May 2017, 6:06 AM
Jugal Sheth
Jugal Sheth - avatar
8 Answers
+ 17
Or... you can trying moving on from Turbo C++ to standard. In Turbo, "using namespace" is not recognised too. So the "Hello World" code should probably be: #include <iostream.h> #include <conio.h> void main() { cout << "Hello World"; getch(); } Elaborations on Turbo C++ and why we shouldn't continue to use it : https://www.sololearn.com/Discuss/288609/?ref=app
3rd May 2017, 10:23 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
what is your code?
3rd May 2017, 6:09 AM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
+ 6
well if you are using turbo c++ I assume the errors relate to iosteam try changing it to iostream.h or use a newer ide.
3rd May 2017, 6:24 AM
jay
jay - avatar
+ 5
what is the errors?
3rd May 2017, 6:13 AM
jay
jay - avatar
0
the normal "hello world" the first one from the module given on this app
3rd May 2017, 6:20 AM
Jugal Sheth
Jugal Sheth - avatar
0
ill give that a try
3rd May 2017, 6:25 AM
Jugal Sheth
Jugal Sheth - avatar
0
ohh thanks this will helpp 😋😅
3rd May 2017, 10:28 AM
Jugal Sheth
Jugal Sheth - avatar
0
acording to my own understanding too i believe may u didnt close the bracket after opening it is more life java but just a little difference try at the end put return 0 to see what it will bring
3rd May 2017, 7:00 PM
Shittu