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

Literature
Emma Madden
SAT Vocabulary
Muffins31
John Montague
David Caprani
AQA A2 Biology Unit 4: Populations
Charlotte Lloyd
Memory: AS Psychology
rae_olamide_xo
Discovery - HSC English
abby.slinger
Food and Nutrients
zaynsquad5ever
Psychology Key Words Research Methods
Alfie Moorhead
Denary, Binary and Hexadecimal
Samuel Leonard
The Periodic Table
asramanathan
Types of Learning Environment
Brandon Tuyuc