Flashcards
Algorithmen und Programmierung in C++
Flashcards do conjunto (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
Informações
- Descrição
- FlashCards sobre Algorithmen und Programmierung in C++, criado por Simone Bibawi em 09-02-2019.
- Criado por
- Simone Bibawi
- Visualizações
- 0
- Avaliação
Mais sobre Data Types, Variables and Operators