代码编程简单炫酷,求一个炫酷的c完整代码

1 , 求一个炫酷的c完整代码套公式
2 , 超简单C语言编程#include<stdio.h>void main() int a,b,c,m; printf("Input a b c:"); scanf("%d%d%d",&a,&b,&c); if(a>b) if(a>c)m=a; else m=c; else if(b>c)m=b; else m=c; printf("%d\n",m);}【代码编程简单炫酷,求一个炫酷的c完整代码】
3,一段非常简单的代码来帮帮忙scanf("%d%d%d",&a,&b,&c , ); 多了个逗号哈你的这个程序本身就有问题?。∧愕膇nclude呢?再说了 , 你直接就上来算加减乘除,那也是不对的!你认为这只是简单的计算,但是电脑是不会认识的!你还要对加减乘除进行定义?。≡儆心隳腔故橇恿顺模虑榫筒皇悄阆?的那么简单了,这需要很复杂的定义的!你还是再好好请教老师吧!scanf("%d%d%d",&a,&b,&c);抄录的时候多了一个逗号 。today,you have found the happy,,i am very glad,but you must be trea sure and avoid wasting.今天,你找到了快乐.我很高兴,但是,你必须珍惜,不要浪费了
4,高悬赏 简单编程//全都好了 。应该符合你的要求了吧?#include<iostream>using namespace std; int main()double a[4],t;int i,j,k,ii,jj;int b[3][4]=cout<<"请输入四个数:";for(i=0;i<4;i++) cin>>a[i];for(i=0;i<3;i++) k=i; for(j=i+1;j<4;j++)if(a[k]>a[j]) k=j;if(i!=k)t=a[i];a[i]=a[k];a[k]=t;}}cout<<"排序后:";for(i=0;i<4;i++)cout<<a[i]<<" ";cout<<endl;max=b[0][0];ii=1;jj=1;for(i=0;i<3;i++)for(j=0;j<4;j++) if(max<b[i][j])max=b[i][j]; ii=i+1; jj=j+1; }cout<<"找到最大的数:"<<max<<",这个数在 "<<ii<<" 行"<<jj<<" 列"<<endl;return 0;}运行结果:#include<iostream>using namespace std; class cftprotected: double length,width,height;public: void input() cout<<"请输入长方体的长:"; cin>>length; cout<<"宽:"; cin>>width; cout<<"高:"; cin>>height; } double volume() return length*width*height; }};int main() cft c1,c2,c3; c1.input(); cout<<"体积为:"<<c1.volume()<<endl; c2.input(); cout<<"体积为:"<<c2.volume()<<endl; c3.input(); cout<<"体积为:"<<c3.volume()<<endl;return 0;}运行结果:#include<iostream>#include<string>using namespace std; class studentprotected: string sno;//学号 double score;//成绩public: student(string n,double s) sno=n; score=s; } string get_sno() return sno; } double get_score() return score; }};void max(student *s) double maxscore; int i; maxscore=s[0].get_score();//得到最高分数 。有可能同时有多个人是最高成绩 , 那么就输出这几个人的学号 for(i=1;i<5;i++) if(maxscore<s[i].get_score()) maxscore=s[i].get_score(); cout<<"最高成绩为:"<<maxscore<<endl<<"成绩最高的学生学号:"<<endl; for(i=0;i<5;i++) if(s[i].get_score()==maxscore) cout<<s[i].get_sno()<<endl;}int main() student s[5]= student("100001",79), student("100003",68), student("100002",89), student("100004",90), student("100005",90)};max(s);return 0;}运行结果:

    推荐阅读