lundi 5 avril 2021

How to create a 2D array taking sizes as input from the user without using vectors [duplicate]

I know this is not correct but what's the correct way?

int a,b;
cin>>a>>b;
int matrix[a][b];

And if vector is the only option then please mention it. Thanks!

Aucun commentaire:

Enregistrer un commentaire