北邮信通C++上机实验 第五章(3)

2020-03-26 21:35

3.

#include using namespace std; void hexadecimal(int m) {

cout << \Hexadecimal number is \<< hex <

endl; }

void octonary(int m) { }

cout << \

void binary(int m) { }

void main() { int n;

cout << \input a decimal number to transform it int a[31] ; int x = 0; while (m != 0) { }

cout << \for (x=x - 1; x >= 0; x--) { }

cout << a[x]; a[x] = m % 2; m= m / 2; x++;

into Hexadecimal, Octonary and Binary:\

cin >> n;

}

cout << endl << \hexadecimal(n); octonary(n); binary(n); system(\

4.

#include using namespace std; int quadratic(int x, int y) {

y += x*x; if (y >= 1000)

}

return x-1;

else { }

return quadratic(x + 1, y);

void main() { }

int x = 1, y = 0;

cout << quadratic(x,y) << endl; system(\

5.

#include using namespace std; void s(int a, int b) { }

void s(float a) { }

void main() {

int choose; int x, y; float m;

cout << \float const pai = 3.14159f;

cout << \cout << \

then input two integers,it will show you the square of the triangle consisted of them.\

\

square of the circle consisted of the first number\


北邮信通C++上机实验 第五章(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:尔雅通识课《国学智慧》作业考试答案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: