Berilgani: Vector sinifiga oyid obyek yaratish


Download 6.28 Kb.
Sana30.04.2023
Hajmi6.28 Kb.
#1407761
Bog'liq
Dástúrlew 1


Berilgani:Vector sinifiga oyid obyek yaratish.

#include


#include
using namespace std;

int main()


{
vector intvektor;
int i;
for(i=0; i<10; i++)
intvektor.push_back(i+1);

for(i=0; i
cout<cout<

vector stringvektor;


stringvektor.push_back("Kungrad");
stringvektor.push_back("Moynaq");
stringvektor.push_back("No`kis");
stringvektor.push_back("Kanlikol");

for(i=0; i< stringvektor.size(); i++)


cout<< stringvektor[i]<<" ";

cout<

return 0;


}

Download 6.28 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling