Составители:
Рубрика:
47
7. #include <iostream.h>
void main()
{ int i, s = 1;
for (i = 1; i < 4; i++)
{ s *= i + i;
cout << " s " << s << endl;
}
cout << " Итог: s= " << s << endl;
}
8. #include <iostream.h>
void main()
{ int i = 5;
while ( i < 50 )
{ cout << "i = " << i << endl;
i += 15;
}
}
9. #include <iostream.h>
void main()
{ int m[5] ={1,2,3,4,5};
int *pt;
pt = &m[0];
cout << " *(pt+4)= " << *(pt+4) <<
" *pt+4 =" << *pt+4;
}
10.#include <iostream.h>
void func(int *x, int& y, int z, int p)
{
*x += p;
y += 10 + x;
z += 2 * p;
}
Страницы
- « первая
- ‹ предыдущая
- …
- 45
- 46
- 47
- 48
- 49
- …
- следующая ›
- последняя »