Prog Club Introductory Presentation An introduction to Programming Club for Y7 batch Migration from Turbo C++ to GNU C++ -- Ashish Bhatia
Migration from Turbo C++ to GNU C++ Both CBSE and ICSE computer science course teaches Turbo C++ But programmers community all over the world prefers GNU C++
Migration from Turbo C++ to GNU C++ Is migration tough? NOT AT ALL
Migration from Turbo C++ to GNU C++ Step 1: Writing a Program Use gedit or kwrite (press Alt-F2 on desktop screen of linux computer and type ”kwrite” and press enter)
Migration from Turbo C++ to GNU C++ Step 2: compiling a program go to terminal go to dir where file is stored (use ”cd” command which is same as in windows) type ”g++ -o abc.out abc.cpp”
Migration from Turbo C++ to GNU C++ Step 3: executing a program go to terminal go to dir where file is stored (use ”cd” command which is same as in windows) type ”./abc.out”
Migration from Turbo C++ to GNU C++ Changes in Code Replace - #include <iostream.h> #include <math.h> With - #include <iostream> #include <cmath> using namespace std; * conio.h is not available in gnu c++
Migration from Turbo C++ to GNU C++ #include <iostream> using namespace std; int main() { cout << ”Hello world!\n”; } Turbo C++ #include <iostream.h> int main() { cout << ”Hello world!\n”; }