Prog Club Introductory Presentation

Slides:



Advertisements
Similar presentations
Lecture Computer Science I - Martin Hardwick Strings #include using namespace std; int main () { string word; cout
Advertisements

An Introduction to Programming By :- Vishal Hirani B.Tech II year (CSE)
Computer Science 1620 Math Library. Remember this program? suppose that I invest $25000 into a mutual fund that returns 8% per year. Write a program to.
CPSC 441 TUTORIAL – JANUARY 16, 2012 TA: MARYAM ELAHI INTRODUCTION TO C.
CSE202: Lecture 1The Ohio State University1 Introduction to C++
COSC 120 Computer Programming
What Data Do We Have? Sections 2.2, 2.5 August 29, 2008.
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
Getting Started Applications of Computer Programming in Earth Sciences Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
General Computer Science for Engineers CISC 106 Lecture 26 Dr. John Cavazos Computer and Information Sciences 04/24/2009.
C++ Introduction. Why Learn C++? Very powerful and respected prog. Lang. Very powerful and respected prog. Lang. Highly respected in Academics Highly.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Intro. to Game Programming Want to program a game?
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
Compiling C/C++ Programs in Linux Lab اللهم علمنا ما ينفعنا،،، وانفعنا بما علمتنا،،، وزدنا علماً
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
Creating Projects in JCreator Computer Science 40S.
COMPUTER PROGRAMMING. A Typical C++ Environment Phases of C++ Programs: 1- Edit 2- Preprocess 3- Compile 4- Link 5- Load 6- Execute Loader Primary Memory.
Open a editor Write/Type the program Save the program with “.c” extension Compile the program (alt + F9) Run/Execute the program (ctrl + F9) Check the.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
1 A simple C++ program // ======================================================= // File:helloworld.cpp // Author:Vana Doufexi // Date:1/4/2006 // Description:Displays.
Lecture 19 CIS 208 Wednesday, April 06, Welcome to C++ Basic program style and I/O Class Creation Templates.
Compiling a Native C++ Program on the Command Line #define #include.
1 8/31/05CS150 Introduction to Computer Science 1 Hello World!
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
Introduction to C++.  Computers: CPU, Memory & Input / Output (IO)  Program: Sequence of instructions for the computer.  Operating system: Program.
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
CSE1222: Lecture 1The Ohio State University1. Computing Basics  Computers CPU, Memory & Input/Output (IO)  Program Sequence of instructions for the.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
1 Structure of Simple C++ Program Chapter 1 09/09/13.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
General Computer Science for Engineers CISC 106 Lecture 27 Dr. John Cavazos Computer and Information Sciences 04/27/2009.
STRUCTURED PROGRAMMING Complete C++ Program. Content 2  Main Function  Preprocessor directives  User comments  Escape characters  cout statement.
1 CS 192 Lecture 4 Winter 2003 December 8-9, 2003 Dr. Shafay Shamail.
KYC - Know your compiler Introduction to GCC
C++ First Steps.
C++ Programming: Presentation 1
Topic Pre-processor cout To output a message.
ANNOUNCEMENT The missed lecture will be made up this Monday evening in the Tech PC classroom (MG51). A tentative time interval is 6:30-8:00. The exact.
Chapter 2 part #1 C++ Program Structure
Session 1 - Introduction
Beginning C++ Programming
Learning Objectives What else in C++ Bitwise operator
Chapter 2 – Getting Started
Random Number Generation
הרצאה 03 אבני היסוד של תוכנית ב- C
جامعة البحر الاحمر كلية العلوم التطبيقية قسمي الحاسوب وتقنية المعلومات الفصل الداسي الثاني المقرر: اساليب برمجة 1 محاضرة رقم 1 د. خالد عثمان العالم.
Code::Block vs Visual C++
الوحدة الرابعة البرمجة وصياغة حل المسائل البرمجة وأهميتها أهداف الدرس الأول مفهوم البرمجة. الفرق بين المبرمج ومستخدم البرنامج. الحاجة إلى البرامج.
Run Java file with Window cmd
Lab 1 Introduction to C++.
C++ Programming Lecture 3 C++ Basics – Part I
Engineering Problem Solving with C++ An Object Based Approach
Life is Full of Alternatives
CPS120: Introduction to Computer Science
CHAPTER 4 File Processing.
Linux Operations and Administration
Functions Imran Rashid CTO at ManiWeber Technologies.
Computer Terms Review from what language did C++ originate?
COMS 261 Computer Science I
CPP Programming Language
Introduction to Programming - 1
Chapter 2 part #1 C++ Program Structure
CSE Module 1 A Programming Primer
Presentation transcript:

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”; }