关于C语言的编程问题答:include "stdio.h"include "stdlib.h"int fun(int *s,int *t,int *k){ for(int i=*k;i<*t;i++){ if(s[i]>s[*k])k=i;} return *k;} int main(){ int s[]={876,675,896,101,301,401,980,431,451,777};int *p;int t,k;//改变数组大小 realloc(p,sizeof(s)+size...
C语言编程题:输入两个整数,计算并用浮点数显示其和,差以及相除的结果...答:include <stdio.h> include <stdlib.h> int main (){ int a,b;printf ("input 2 int data: ");scanf ("%d %d",&a,&b);printf("\n");printf("%d + %d = %f\n",a,b, (float)(a+b));printf("%d - %d = %f\n",a,b, (float)(a-b));// printf("%d * %d = %f\...
c语言编程问题,求高手解答,还有几天就要交了,谢谢!题目是:对学生四门...答:代码如下 /*请使用win-tc或turbo c等纯c语言环境编译*/ /*dev c++或vc++不能识别程序中所用的某些c语言的函数*/ include<stdio.h> include<conio.h> include main(){ int i,j,key,n,tem0,tem1,a[100][2];char b[5][10]={"chinese","English","chemistry","physics","total"}; ...