Flashcards
Algorithmen und Programmierung in C++
Cards in this deck (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
Information
- Description
- Flashcards on Algorithmen und Programmierung in C++, created by Simone Bibawi on 09/02/2019.
- Created by
- Simone Bibawi
- Views
- 0
- Rating
More on Data Types, Variables and Operators