填空题

下列程序的输出结果是 【8】 。
int t(int x, int y, int cp, int dp)
cp=x*x+y*y;
dp=x*x-y*y;

main ()
int a=4, b=3, c=5, d=6;
t (a,b, c,d);
printf("%d %d \n",c,d);

【参考答案】

E, F
<上一题 目录 下一题>
热门 试题

填空题
输出若干学生3门课程的成绩。 #include <stdio.h> 【9】 struct student int num; float score[3]; main () int i=0, n; float a[3]; 【10】 *ptr [200]; printf ( 请输入学生学号和3门课成绩,学号为0表示数据输入结束 n ); do ptr[i]=(struct student *)malloc(sizeof(struct student)); scanf( %d%f%f%f ,&ptr[i]->num,&a[O],&a[1],&a[2]); ptr[i]->score[O]=a[O]; ptr[i]->score[1]=a[1]; ptr[i]->score[2]=a[2]; if( 【11】 ) break; i++; while(1); n=i-1; 【12】 ; for(i=O;i printf( %-6d%.1f %.1f %.1f n ,ptr[i]->num, ptr[i]->score[0], ptr[i]->score[1], ptr[i]->score[2]);
填空题
近年来形成了软件开发的多种模式,大致有3种类型:基于瀑布模型的结构化生命周期方法、基于动态定义需求的 【4】 方法和基于结构的面向对象的软件开发方法。
相关试题
  • 下列程序的功能是计算1~100的整数的累...