24.include<iostream.h> void main() int a=1,b=2,c; c=a+b; (int b=a+2; c十=a+b; cout<<c<<endl; 运行结果: 25.include<iostream.h void main() inta[5]={3,6,9,12,8}; for(int p=a:p<a+5;p++) if(*p>10)cout<<*p<<endl; 运行结果: 26.include<iostream.h> #include<string.h> struct Worker char name[15];int age;float pay; }; void main()( Worker x; strcpy(x.name,"WangRong"); x.age=45;x.pay=3275; cout<<x.name<<<<x.age<<<<x.pay<<endl } 运行结果: 32524. # include<iostream. h> void mainO { int a=l , b=2 ,C; c=a+b; {int b=a ; c+=a+b; cout< <c< <endl; 运行结果: 25. include<iostream. h> void mainO { int a[5J={3 , 6 , 9 , 12 ,8}; for(int p=a;p<a+5;p++) f(赞 p> 10) cout< <铃 p<<endl; 运行结果: 26. # include<iostream. h> # include<string. h> struct Worker{ char name[l5J; int age; float pay; void mainO { Worker X; strcpy(x. name , "WangRong"); x. age=45;x. pay=3275; cout<<x. name<<"<<x. age<<"<<x. pay<<endl; 运行结果: 325