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

Slides:



Advertisements
Similar presentations
C++ Introduction.
Advertisements

Chapter 1: An Overview of Computers and Programming Languages
COSC 120 Computer Programming
Programming Basics Aims of Programming: –The aim of programming is to write programs to accomplish complex tasks Programming method: –functional decompositional.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
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 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
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.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages Updated by: Dr\Ali-Alnajjar.
Programming is instructing a computer to perform a task for you with the help of a programming language.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
A First Program Using C#
Intro. to Game Programming Want to program a game?
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 2 - Welcome Application: Introduction to C++
Hello World 2 What does all that mean?.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
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.
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.
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?
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.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
1 Structure of Simple C++ Program Chapter 1 09/09/13.
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
Computer Terms Review from what language did C++ originate?
Engineering Problem Solving With C An Object Based Approach
Tools of the Trade
Microsoft Imagine All KU students currently enrolled in a CS class are eligible to receive Microsoft software, including Operating Systems development.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
Beginning C++ Programming
Chapter 1: An Overview of Computers and Programming Languages
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?.
Lab 1 Introduction to C++.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
1. Open Visual Studio 2008.
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
Lab 1 Introduction to C++.
Chapter 1: An Overview of Computers and Programming Languages
Assembler, Compiler, Interpreter
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.
COMS 261 Computer Science I
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 is an input, output device? what is main memory, memory location, memory address? what is a program, data? what is natural language, high-level language, machine language what is a compiler, linker, library? what is source/object/executable code? what are syntax/semantic/stylistic rules? 1

The Fundamentals of C++ First programs Development Environment 2

Program Organization Program structure First programs hello, world calculating the area of a rectangle Microsoft Visual Studio Subversion 3

Programming Cycle A program written in human-readable from is called source program - extension - .cpp (helloworld.cpp) A compiler is applied to the source program to translate it into a form the machine understands - we use Microsoft’s Visual C++ compiler (part of Microsoft’s Visual Studio) The compiler produces object code - direct translation of the source program - extension o. (helloworld.o). The compiler then calls the linker which 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) 4

First Program: helloWorld.cpp // displays a greeting // Michael Rothstein // 1/12/2014 #include <iostream> using namespace std; 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, it 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 6

Subversion subversion – version control software used by programmers for team code development. We use for lab submission and grading has a 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 7