- Stahuj zápisky z přednášek a ostatní studijní materiály
- Zapisuj si jen kvalitní vyučující (obsáhlá databáze referencí)
- Nastav si své předměty a buď stále v obraze
- Zapoj se svojí aktivitou do soutěže o ceny
- Založ si svůj profil, aby tě tví spolužáci mohli najít
- Najdi své přátele podle místa kde bydlíš nebo školy kterou studuješ
- Diskutuj ve skupinách o tématech, které tě zajímají
Studijní materiály
Zjednodušená ukázka:
Stáhnout celý tento materiálC Reference Card (ANSI)
Program Structure/Functions
type fnc(type1,: : :) function declarations
type name external variable declarations
main() { main routine
declarations local variable declarations
statements
}
type fnc(arg1,: : :) { function de nition
declarations local variable declarations
statements
return value;
}
/* */ comments
main(int argc, char *argv[]) main with args
exit(arg) terminate execution
C Preprocessor
include library le #include < lename>
include user le #include " lename"
replacement text #define name text
replacement macro #define name(var) text
Example. #define max(A,B) ((A)>(B) ? (A) : (B))
unde ne #undef name
quoted string in replace #
concatenate args and rescan ##
conditional execution #if, #else, #elif, #endif
is name de ned, not de ned? #ifdef, #ifndef
name de ned? defined(name)
line continuation char \
Data Types/Declarations
character (1 byte) char
integer int
oat (single precision) float
oat (double precision) double
short (16 bit integer) short
long (32
Vloženo: 28.05.2009
Velikost: 103,69 kB
Komentáře
Tento materiál neobsahuje žádné komentáře.
Copyright 2025 unium.cz


