有以下程序#includetypedef struct book{char name[50];double price;} BOOK;void fun(BOOK *pd,int num,int size);void main(){BOOK data[10]={"photoshop",26.8,"计算机原理",15.00,"数据结构",35.6};int n=3,m=10;fun(data,n,m);printf("%s , %s\n",data[8].name,data[9].name);}void fun(BOOK*pd,int num,int size){int i,j,t;double mx,mn;mx=mn=pd[0].price;j=t=0;for(i=1;imx){ mx=pd[i].price;j=i; }if(pd[i].price
A. 数据结构 , 计算机原理
B. 计算机原理 , 数据结构
C. Photoshop , 计算机原理
D. 数据结构 , Photoshop
查看答案
有下列程序#include #include typedef struct stu {char name[9];char gender;int score;} STU;void f(STU *a){ STU c={"Sun", 'f', 90},*d=&c;a = d;strcpy(a->name,c.name);a->gender = c.gender;a->score = c.score;printf("%s,%c,%d,", a->name,a->gender, a->score);}main( ){ STU a={"Zhao", 'm', 85};f(&a);printf("%s,%c,%d", a.name,a.gender, a.score);}程序执行后的输出结果是()。
A. Zhao,m,85,Sun,f,90
B. Sun,f,90,Sun,f,90
C. Sun,f,90,Zhao,m,85
D. Zhao,m,85,Zhao,m,85
有如下程序#include struct person{char Name[10];int Age;};main(){struct person room[4] = {{"Zun", 11}, {"Liu", 10}, {"He", 12}, {"Zhao", 13}};printf("%s:%d", (room+3)->Name, (room+1)->Age);}程序运行后的输出结果是( )。
A. Liu:10
B. Zun:12
C. Zhao:10
D. He:11
有下列程序#include #include typedef struct stu {char name[9];char gender;int score;} STU;STU f(STU a){ STU c={"Sun", 'f', 90};strcpy(a.name,c.name);a.gender = c.gender;a.score = c.score;return a;}main( ){ STU a={"Zhao", 'm', 85},b={"Qian", 'f', 95} ;b=f(a);printf("%s,%c,%d,%s,%c,%d",a.name, a.gender, a.score, b.name,b.gender, b.score);}程序执行后的输出结果是()。
A. Zhao,m,85,Sun,f,90
B. Zhao,m,85,Qian,f,95
C. Sun,f,90,Sun,f,90
D. Sun,f,90,Qian,f,9
1.下列各种比例尺的地形图中,比例尺最大的是( )。
A.1:1000
B.1:2000
C.1:500
D.1:5000