📜  Turbo C++和Dev C++之间的区别

📅  最后修改于: 2021-05-30 04:17:43             🧑  作者: Mango

1. Turbo C++(TC):
它是用于C和CPP语言的编译软件。初始版本是1990年5月,而第一个稳定版本是2008年9月。与Dev C++相比,它需要更多的内存和更多的加载时间。 Turbo C++是我们大多数人从学校/学院开始编码生活的编译器。

2.开发C++:
Dev C++也用于C和CPP语言。第一个稳定版本于2015年4月发布。与Turbo C++相比,它的速度更快。 Dev C++与我们在编码竞赛中使用的在线编译器非常相似。

让我们使用程序查看两者之间的区别。要了解这一点,您必须具有C++的基本知识。

Turbo C++中的代码:

#include 
#include 
void main()
{
   clrscr();
   cout << "Hello Geeks!" ; 
   getch(); 
}

笔记 –
该程序仅根据Turbo C++软件的标准编写。这可能无法在在线编译器或Dev C++中运行。

Dev C++中的代码:

#include 
using namespace std;
int main()
{
   cout << "Hello Geeks" ; 
   return 0; 
} 

Turbo C++和Dev C++之间的区别:

S.NO. Turbo C++ Dev C++
1. In Turbo C++, there are 2 header files. #include is extra which is not present in code of Dev C++. This header file basically contains the getch() function which is used to return the program successfully. In Dev C++ code, we use return 0 which is by default contained by main() function.
2. Namespace contains the basic cin, cout and other keywords. But we do not use it in Turbo C++, because we write iostream.h which contains everything in itself. In Dev C++, we write namespace std because the header file iostream does not contain cin, cout.
3. In Turbo C++, previous program data is saved as garbage and next time appears on screen. So clrscr() function is required. In Dev C++, each time after a compile and run, a new window popups. So, we do not need to clear screen used by previous program.
4. In Turbo C++, graphics are installed by default. In Dev C++, we need to manually install the graphics.

要从最佳影片策划和实践问题去学习,检查了C++基础课程为基础,以先进的C++和C++ STL课程基础加上STL。要完成从学习语言到DS Algo等的更多准备工作,请参阅“完整面试准备课程”