1)#include < iostream > 2)#include < cmath > 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(x>y) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout a >> b; 16)c=max(a,b); 17)cout
- AA.1个
- B2个
- C3个
- D4个
1)#include < iostream > 2)#include < cmath > 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(x>y) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout a >> b; 16)c=max(a,b); 17)cout
第13行定义了3个双精度浮点型的变量,变量名分别为a、b、c。
1、有以下程序#include <stdio.h>main() {
有以下程序#include <stdio.h>main() { char b=2; printf("%dn", b=b<<3);}程序的运行结果是A.4 B.8 C.16 D.2000A4 B8 C16 D2000
2、请读程序: #include<stdio.h> void fu
请读程序:#include<stdio.h>void fun(float *pl, float *p2, float *s){ s=( float * )calloc( 1, sizeof(float));*s=*p1+ *(p2++);}main(){ float a[2]={1.1, ...
3、有以下程序 #include <stdio.h> main()
有以下程序#include <stdio.h>main(){char c1=’1’,c2=’2’;c1=getchar();c2=getchar();putchar(c1);putchar(c2);}当运行时输入:a<回...
4、有以下程序:include<stdio.h>include<
有以下程序:include<stdio.h>include<strin9.h>main( ){printf{"%dn",strlen("%dn",strlen("ATSn012|"));}程序运行后的输出结果是( )。A3B8C4D9
5、以下程序的功能是# include <stdio.h>main
以下程序的功能是# include <stdio.h>main (){ FILE *fp1;*fp2; fp1=fopen ("file1","r"); fp2=fopen ("file2","w"); while (!feof (fp1)) fputc (fgetc (fp1),f...
6、1)#include < iostream > 2)#in
1)#include < iostream >2)#include < cmath >3)using namespace std;4)double max(double x,doubley)5){6)if(x>y)7)return x;8)else9)return y;1...