Flashcards - tablouri unidimensionale

Description

Flashcards on Flashcards - tablouri unidimensionale, created by Oprean Paul on 05/05/2020.
Oprean Paul
Flashcards by Oprean Paul, updated more than 1 year ago
Oprean Paul
Created by Oprean Paul over 4 years ago
2
0

Resource summary

Question Answer
Ce este un tablou unidimensional (vector) ? Un tablou unidimensional este o variabila caracterizata de un numar de locatii (sertare), toate fiind de acelasi tip.
Ce tipuri de date cunoastem? intreg (int) real (double, float) boolean (bool) string (string, char) etc.
La ce ne sunt de folos vectorii? In loc sa declaram 1000 de variabile, putem declara una singura cu 1000 de locatii, ceea ce este mult mai avantajos si mai facil.
Cum am putea face asta? In loc sa declaram 1000 de elemente : intreg a1, a2, a3, ... , a1000; Putem declara n intreg, care reprezinta numarul de elemente ale vectorului si vectorul insusi : intreg n<-1000, a[n];
Cum citim si cum afisam un vector?
Cateva operatii simple cu vectori : Minim, maxim, adaugare, sortare, eliminare, suma elementelor, numarul elementelor pare/impare, etc.
Cum determinam maximul elementelor unui vector?
Cum calculam suma elementelor pare dintr-un vector?
Show full summary Hide full summary

Similar

GCSE English Literature: Of Mice and Men
Andrea Leyden
George- Of mice and men
Elinor Jones
Key Biology Definitions/Terms
mia.rigby
CPA Exam Flashcards
joemontin
Biology
Holly Bamford
Summary of AS Psychology Unit 1 Memory
Asterisked
Top learning tips for students
Micheal Heffernan
Atomic numbers and mass numbers quiz
Sarah Egan
New GCSE history content
Sarah Egan
regular preterite tense conjugation -ar verbs
Pamela Dentler
Music Therapy - CBMT practice exam #1
Jessica H.