Computer Terms Review from what language did C++ originate?

Slides:



Advertisements
Similar presentations
COSC 120 Computer Programming
Advertisements

Programming Basics Aims of Programming: –The aim of programming is to write programs to accomplish complex tasks Programming method: –functional decompositional.
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.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
Assembler Compiler Interpreter ASSEMBLER To convert the assembly language into machine code. Translate mnemonic operation codes to their machine language.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
A First Program Using C#
Intro. to Game Programming Want to program a game?
Hello World 2 What does all that mean?.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
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.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
3. The Nuts and Bolts of C++ Computer Programming 3. The Nuts and Bolts of C++ 1 Learning the C++ language 3. The Nuts and Bolts of C++
Course Title: Introduction to C++ Course Instructor: ADEEL ANJUM Chapter No: 01 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
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.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
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?
CS CS CS IA: Procedural Programming CS IB: Object-Oriented Programming.
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?
Programming with Visual Studio.NET A short review of the process.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 05, 2005 Lecture Number: 4.
Hardware and Software Programming. COMP104 Lecture 2 / Slide 2 Hardware and Software l Why should we bother with hardware, while we are having a programming.
CS Computer Science I. BCPL was developed in 1967 as a language for writing operating systems and software compilers In 1970, the creators of the.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Introduction to C++.  Computers: CPU, Memory & Input / Output (IO)  Program: Sequence of instructions for the computer.  Operating system: Program.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Course Title Object Oriented Programming with C++ instructor ADEEL ANJUM Chapter No: 03 Conditional statement 1 BY ADEEL ANJUM (MSc-cs, CCNA,WEB DEVELOPER)
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Principles of Programming CSEB134 : BS/ CHAPTER Fundamentals of the C Programming Language.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
Software Engineering Algorithms, Compilers, & Lifecycle.
By Kundang K Juman Hardware & Software. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
STRUCTURED PROGRAMMING Complete C++ Program. Content 2  Main Function  Preprocessor directives  User comments  Escape characters  cout statement.
Chapter 1: Introduction to Computers and Programming
Foundations of Computer Science C & C++ programming lecture 2
Introduction to Computers and C++ Programming
Chapter 1: An Overview of Computers and Programming Languages
Engineering Problem Solving With C An Object Based Approach
Tools of the Trade
Chapter 1: Introduction to computers and C++ Programming
Introduction to Visual Basic 2008 Programming
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
Beginning C++ Programming
Computer Programming Lecturer: Ir Dr Frank H.F. LEUNG
Chapter 1. Introduction to Computers and Programming
C++ Programming: From Problem Analysis to Program Design
Assembler, Compiler, Interpreter
Chapter 1: Introduction to Computers and Programming
Hello World 2 What does all that mean?.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
1. Open Visual Studio 2008.
Introduction CSC 111.
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
Chapter 1 Introduction(1.1)
Lab 1 Introduction to C++.
Chapter 1: An Overview of Computers and Programming Languages
Assembler, Compiler, Interpreter
Your first C and C++ programs
CS IA: Procedural Programming CS IB: Object-Oriented Programming
Programs written in C and C++ can run on many different computers
Reminders Please turn off cell phones.
Computer Terms Review from what language did C++ originate?
COMS 261 Computer Science I
ICS103 Programming in C 1: Overview of Computers And Programming
Chapter 2 part #1 C++ Program Structure
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Computer Terms Review from what language did C++ originate? what’s input, output device? what’s main memory, memory location, memory address? what’s a program, data? what’s natural language, high-level language, machine language what’s compiler, linker, library? what’s source/object/executable code? what are syntax/semantic/stylistic rules?

The Fundamentals of C++ First programs Development Environment

Program Organization program structure first programs hello, world calculating the area of a rectangle Microsoft Visual Studio subversion

Programming Cycle Program written in human-readable form is called source program - extension - .cpp (helloworld.cpp) compiler is applied to the source program to translate it into form machine understands - we use Microsoft’s Visual C++ compiler (part of Microsoft’s Visual Studio) compiler may produce either object code - direct translation of the source program - extension o. (helloworld.o) compiler (actually linker) adds all other necessary parts for the program to run on a computer and produces executable code specially produced executables can be traced (more on that later)

First Program: helloWorld.cpp // displays a greeting // Mikhail Nesterenko // 8/25/2013 #include <iostream> using std::cout; using std::endl; int main() { cout << "Hello, World!" << endl; } preprocessor directive comments function named main() indicates start of program output statement

Visual Studio Microsoft Visual Studio (MSVS) is an integrated development environment (IDE) for writing, debugging, testing and running programs, supports multiple languages C++ is one of the supported languages MSVS basic concepts console application (command line application, Win32) - input/output go to console project - a set of files that are developed jointly. A project compiles into a single executable solution – a set of related projects

Subversion subversion – version control software used by programmers for team code development. We use for lab submission and grading has centralized code repository C++ projects can be: added to repository, checked out and committed repository is accessible from the web  method to verify submission TortoiseSVN – subversion client integrated into Windows Explorer