Karteikarten
Algorithmen und Programmierung in C++
Karten in diesem Stapel (4)
- 1Memory leakMemory-management system thinks the memory is being used but actually nothing is using it anymore.
- 2Beispiel Code für struct rectangle which contains width and heightstruct rectangular{
int width; int height;};
struct rectangular myrectangular;
myrectangular.width=20;
myrectangular.height=30; - 3Enumeration example direction enumenum direction {East, West, North, South};
int main()
{ dir = West;
cout< - 4Example code unionunion shape {
struct rectangle rect;
struct circle circ;};
// usage
struct rectangle myrect = {10, 20};
struct circle mycirc = {50};
union shape myshape;
myshape.rect = myrect;
myshape.circ = mycirc; // myrect.rect overwritten, shape is now a circle
Informationen
- Beschreibung
- Karteikarten am Algorithmen und Programmierung in C++, erstellt von Simone Bibawi am 09/02/2019.
- Erstellt von
- Simone Bibawi
- Aufrufe
- 0
- Bewertung
Mehr zu Data Types, Variables and Operators