×

# Turbo C++ vs. g++(4.8.1)

 0 I have learnt programming in Turbo C++ IDE and now, when i submit my code, the compiler rejects it. Are the codes written compatible for turbo C++ IDE valid in g++(4.8.1) ? Is there something i can do to be able to take part in the competitions successfully?? asked 23 May '14, 15:36 1●1●1●1 accept rate: 0% u can go through this link..http://www.codechef.com/getting-started (23 May '14, 15:41) kunal3614★

 1 Turbo C++ (TCC) is obsolete. Stop using it. The codes written on TCC are not compatible on most modern C++ compilers. For example, in TCC you have to include #include  while on modern compiler it will throw error. You nee to remove the .h to make it compatible. Also using namespace std is alien to TCC but not for modern compilers. TCC does not support C++11 standard and alone makes a big reason to stay away from this compiler. answered 23 May '14, 15:41 2★haccks 76●2●4 accept rate: 0%
 0 Turbo c++ is an old compiler. It was last updated in 1994-96 but c++ was standardized much later. But follow the following tips and you will be fine. 1)Replace #include with #include. All c-headers will have a .h extention but c++-headers will not have any extention. 2)Add "using namespace std" before function prototype declaration. 3)Do not use #include and functions like getch(),clrscr(). answered 23 May '14, 19:37 893●2●11●34 accept rate: 10%
 0 Turbo c++ is an old compiler. It was last updated in 1994-96 but c++ was standardized much later. But follow the following tips and you will be fine. 1)Replace #include with #include. All c-headers will have a .h extention but c++-headers will not have any extention. 2)Add "using namespace std" before function prototype declaration. 3)Do not use #include and functions like getch(),clrscr(). answered 23 May '14, 19:38 893●2●11●34 accept rate: 10%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×1,840
×190
×10
×9

question asked: 23 May '14, 15:36

question was seen: 3,515 times

last updated: 23 May '14, 19:38