mercredi 8 novembre 2023

C++ Vector Declaration Syntax

Confused why vector declaration syntax is different than any other data structure. For example an Array.

vector<int> myvector

Whereas an array can be declared as such

int arr[] = {1, 2}

Aucun commentaire:

Enregistrer un commentaire