1 / 7

from what language did C++ originate? what is an input, output device?

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?

base
Download Presentation

from what language did C++ originate? what is an input, output device?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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?

  2. The Fundamentals of C++ First programsDevelopment Environment

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

  4. 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)

  5. 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

  6. 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

  7. 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

More Related