You are on page 1of 7

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 language expressive power? understandability?
what’s compiler, linker, library?
what’s source/object/executable code?
what are syntax/semantic/stylistic rules?
what is legal/illegal?

1
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

3
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)

4
First Program: helloWorld.cpp
// displays a greeting
include
//
directive
// 15/02/2020 comments
#include <iostream>

using std::cout; using std::endl;


function
named int main() {
main() cout << "Hello, World!" << endl;
indicates }
start of
program

output
statement
5
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

6
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

You might also like