SWD014-L2 guruh talabasi Tursunov Fozilning dasturlash 2 fanidan 5-laboratoriya ishi
30-varinat
Slice sinfidan foydalanib valarray massiv elementlari har 2 qadamdagilarni aniqlang.
Dastur Kodi
#include
#include
//30. Slice sinfidan foydalanib valarray
//massiv elementlari har 2 qadamdagilarni aniqlang.
using namespace std;
int main(int argc, char** argv) {
valarray b ={1,2,3,4,5,6,7,8} ;
slice s(0,4,2);
valarray help = b[s];
for(int i=0; i<4; i++){
cout<
}
return 0;
}
Do'stlaringiz bilan baham: |