1 C++ for beginners Lecture 0 © 2008 Richèl Bilderbeek.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

C++ Introduction.
Chapter 5 Errors Bjarne Stroustrup
Chapter 13 Graphics classes Bjarne Stroustrup
C++ Language Fundamentals. 2 Contents 1. Introduction to C++ 2. Basic syntax rules 3. Declaring and using variables.
Chapter 14 Graph class design John Keyser’s Modifications of Slides by Bjarne Stroustrup
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
1 Visual Basic.NET Application Overview. 2 Objectives Discuss what a typical Visual Basic.NET application looks like Configure the Visual Studio.NET Integrated.
01 Introduction1June Introduction CE : Fundamental Programming Techniques.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
1 of 6 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction Day 4.
How to Use The Borland C++ Compiler Version 5
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
Java Course Outline Kumar Harshit, USW. Course Description Teaches students to program using the Java programming language with the help of the Netbeans.
From C++ to C#. Web programming The course is on web programming using ASP.Net and C# The course is on web programming using ASP.Net and C# ASP.Net is.
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
Introduction 01_intro.ppt
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Introduction to C++ - How C++ Evolved Most popular languages currently: COBOL, Fortran, C, C++, Java (script) C was developed in 1970s at AT&T (Richie)
Introduction to VB.NET Tonga Institute of Higher Education.
From BlueJ to NetBeans SWC 2.semester.
COS120 Software Development Using C++ AUBG Fall semester 2010 Ref book: Problem Solving, Abstraction and Design Using C++ Authors: Frank Friedman, Elliot.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 13: An Introduction to C++
History of C 1950 – FORTRAN (Formula Translator) 1959 – COBOL (Common Business Oriented Language) 1971 – Pascal Between Ada.
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
1 2. Program Construction in Java Programming Fundamentals.
Lecture 6: Computer Languages. Programming Environments (IDE) COS120 Software Development Using C++ AUBG, COS dept.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Project Deployment IT [211 CAP] How to convert your project to a full application.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Copyright © Curt Hill Generic Classes Template Classes or Container Classes.
CSE 232: C++ Programming in Visual Studio Graphical Development Environments for C++ Eclipse –Widely available open-source debugging environment Available.
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
Chapter 0 Getting Started. Objectives Understand the basic structure of a C++ program including: – Comments – Preprocessor instructions – Main function.
HELLO WORLD program in COBOL - CIS12 Please use speaker notes for additional information!
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 11 – gdb and Debugging.
Module 4: I/O and Strings #1 2000/01Scientific Computing in OOCourse code 3C59 Module 4: I/O In this module we will cover Keyboard/screen input and output.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
Introduction to Eclipse Programming with an Integrated Development Environment.
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Visual Programming Borland Delphi. Developing Applications Borland Delphi is an object-oriented, visual programming environment to develop 32-bit applications.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
BlueJ X ICSE Syllabus. Board Pattern THEORY (100 marks) PRACTICAL (100 marks) PROJECT (50 marks) ASSIGNMENTS (50 marks)
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Chapter 1 Introduction to Computers, Programs, and C++
High or Low Level Programming Language? Justify your decision.
Computer Terms Review from what language did C++ originate?
CSE 374 Programming Concepts & Tools
Lecturer: Mukhtar Mohamed Ali “Hakaale”
String Output ICS 111: Introduction to Computer Science I
Hello World C By Anand George.
Presentation transcript:

1 C++ for beginners Lecture 0 © 2008 Richèl Bilderbeek

2 Question Which kind of programs can be written in C++?

3 Answer Every kind of program

4 Question Which programming style does C++ enforce?

5 Answer None

6 About C++ Developed by Bjarne Stroustrup in 1983 ‘A better C’ (largely) backwards-compatible with C Emphasis on speed Platform independent, but without standard graphics support Many users (but declining in favor of C# and Java)

7 About C++ Multi paradigm language –You are allowed to do everything you want –You want to overload the plus operator to subtract? That's fine –You don't want to program in a const-correct way? That's fine –You don't want to use templates? That's fine –You don't want to use classes? That's fine

8 Question In which ways should your Integrated Development Environment (IDE) (your 'programming program') help you?

9 Answer Depends on your needs But a beginner can use all the help he/she can get!

10 C++ Builder 6 Borland (now CodeGear) IDE Helpful while programming –Function and class browsing Helpful while debugging –Breakpoints, step through code, call stack VCL library for Graphical User Interface (GUI) ('Windows') applications

11 Question Which book is the best book to use for a beginners training?

12 Answer Depends on the trainee –Dutch or English? –Easy read or correct?

13 The book Ammeraal. C++. 6e editie, –Fine Dutch reference –Partly outdated *, due to this sometimes unusual or 'evil' style * The most important books came out later...

14 Question What should be in a training manual?

15 Answer Summary of the treated theory, especially the theory that cannot be found in the book Correction of the book Advice Additional exercises All is in the manual

16 This training Day 1: Basics Day 2: Functions Day 3: std::vector Day 4: Classes Day 5: Polymorphism and inheritance

17 A day of training 9:00 startup up with coffee 9:30-10:30: lecture 10:30-10:45: break 10:45-12:30: to work 12:30-13:15: luch 13:15-14:45: to work 14:45-15:00: break 15:00-16:30: to work

18 Question Which steps are between code and executable?

19 Answer Compiling –Convert code of each unit to object code –Many checks of your code Linking –Connects unit object code to single executable

20 Your compiler is your friend The compiler does many checks on your code The compiler knows how you should write valid C++ The compiler will give you advice in the form of warnings and 'errors' Always compile cleanly

21 'Hello world' program #include //Header file int main() { std::cout //Write to screen << “Hello world” //this text << std::endl; //end line std::cin.get(); //wait for key }

22 Question Can you get a 'Hello World' program to run in C++ Builder 6? What to do if you don't succeed? If you make errors (on purpose), what does the compiler tell you? Can you save and load it? Try!

23 Hint Always first do 'File | Close All'

24 Hint Start a Console Application by –'File | New | Other' –Select 'Console Wizard' –Set 'Source' to C++ –Only leave 'Console Application' checked

25 Hint C++ Builder will create a Project and a Unit for you. Let the filename for the Project start with 'Project', let the filename for the Unit start with 'Unit'. If they are the same you loose either your project (ok) or your code (very bad)