Professional Documents
Culture Documents
Today We'll Talk Generally About C++ Development (Plus A Few Platform Specifics)
Today We'll Talk Generally About C++ Development (Plus A Few Platform Specifics)
Makefile
(ASCII text)
1 source file
=
1 compilation unit
Also: .C .cxx .cc
Programmer
(you)
C++ header files
(ASCII text) .h
readme
(ASCII text)
// precompiler directive
argc
An integer with the number of parameters (>=1)
argv
An array of pointers to C-style character strings
Its array-length is the value stored in argc
The name of the program is kept in argv[0]
CSE 332: C++ program structure and development environment
int i = 0
i < argc
++i
argv[i]
An example of array indexing
Specifies ith position from start of argv
CSE 332: C++ program structure and development environment
An
IDE
console/terminal/window
Makefile
make
turnin/checkin
make utility
compiler
link
precompiler
compile
Programmer
(you)
C++
source code
WebCAT
E-mail
Runtime/utility
libraries
(binary) .lib .a .dll .so
Eclipse
Visual Studio
debugger
gcc, etc.
link
compiler
linker
executable
program
object code
(binary, one per compilation unit) .o