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

Algebra
Alex Maraio
Developmental Psychology - Freud, Little Hans (1909)
Robyn Chamberlain
GRE Word of the Day
SAT Prep Group
GCSE English Literature: Of Mice and Men
mia.rigby
IB Economics SL: Microeconomics
Han Zhang
FCE Practice Quiz - B2
miminoma
BIOLOGY HL DEFINITIONS IB
Luisa Mandacaru
How Parliament Makes Laws
harryloftus505
GCSE AQA Physics - Unit 2
James Jolliffe
The Strange Case of Dr. Jekyll and Mr. Hyde
K d
Memory-boosting tips for students
Micheal Heffernan