Como se genera un vector en c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Como se genera un vector en c++

19th Feb 2017, 10:56 PM
wilson
wilson - avatar
3 Answers
+ 4
Como toda variable con el tipo de dato y seguido del nombre ;después [cantidad de elementos] = {elemento0,elemento1,...}; por ejemplo: int b[5] = {11, 45, 62, 70, 88};
20th Feb 2017, 1:09 AM
C.E.
C.E. - avatar
0
gracias
20th Feb 2017, 1:20 AM
wilson
wilson - avatar
0
👍👍
20th Feb 2017, 1:20 AM
wilson
wilson - avatar