#include
type definition
constants related to that type
function prototypes related to that type
type definition
constants related to that type
function prototypes related to that type
type definition
constants related to that type
function prototypes related to that type
constants for the main routine
functions for the main routine
int main() {
}
function definitions
#include specifies additional code that the program needs.
if not defined
#ifndef some_string
#define some_string
code goes here
#endif
#pragma once
code goes here
#include "filename.h"
g++ -c file.cpp to produce file.o
g++ -o main main.cpp file1.o file2.o ... to produce main
ResultT.o: ResultT.h
PlayerT.o: PlayerT.h StatusT.h is needed.
main: StatusT.o PlayerT.o ResultT.o
StatusTest: StatusT.o