Download presentation
Presentation is loading. Please wait.
Published byDamon Harrell Modified over 9 years ago
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? n what’s natural language, high-level language, machine language n what’s compiler, linker, library? n what’s source/object/executable code? n what are syntax/semantic/stylistic rules? Computer Terms Review 1
2
The Fundamentals of C++ First programs Development Environment
3
l Program structure l First programs n hello, world n calculating the area of a rectangle l Microsoft Visual Studio l Subversion Program Organization 3
4
Program written in human-readable form is called source program - extension -.cpp ( helloworld.cpp ) l 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 ) l compiler (actually linker) adds all other necessary parts for the program to run on a computer and produces executable code l specially produced executables can be traced (more on that later) Programming Cycle 4
5
// displays a greeting // Mikhail Nesterenko // 8/25/2013 #include using std::cout; using std::endl; int main() { cout << "Hello, World!" << endl; } First Program: helloWorld.cpp preprocessor directive output statement comments function named main() indicates start of program 5
6
l Microsoft Visual Studio (MSVS) is an integrated development environment (IDE) for writing, debugging, testing and running programs, supports multiple languages l C++ is one of the supported languages l MSVS basic concepts n console application (command line application, Win32) - input/output go to console n project - a set of files that are developed jointly. A project compiles into a single executable n solution – a set of related projects Visual Studio 6
7
l subversion – version control software used by programmers for team code development. We use for lab submission and grading n has centralized code repository n C++ projects can be: added to repository, checked out and committed n repository is accessible from the web method to verify submission l TortoiseSVN – subversion client integrated into Windows Explorer Subversion 7
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.