Switching from Turbo C++ to GCC
Tutorial
Note to Turbo C++ users
Which IDE to use?
Code without IDE in Linux
Tip 1
So how do you clear the screen then?
Isn't getch() a necessary function to use?
If gets() is not allowed, then how to take string as input?
Tip 2: Some header files are included differently
In Turbo C | In GCC |
#include<iostream.h> | #include<iostream> |
#include<iomanip.h> | #include<iomanip> |
Tip 3: Use using namespace std
using namespace std;
Tip 4: Do not use void main()
‘Hello World' program in gcc/g++
Here's how it looks like:
#include<iostream>��using namespace std;��int main() { � cout<<"Hello readers!\n"; � return 0; �}
Thank you!