Vectorlar yordamida ikki o‘lchovli massivlarni ham yaratish mumkin. Masalan:
Vectorlar yordamida ikki o‘lchovli massivlarni ham yaratish mumkin. Masalan:
#include
#include
using namespace std;
int main ()
{
const int row=10;
const int col=2;
vector> tab(row);
for(int i=0; i
{
tab[i].resize(col);
for(int j=0; j
cout<<'\n';
}
cout<
system("pause");
}
http://fayllar.org
Do'stlaringiz bilan baham: |