C语言高手请进!!!100分跪求一篇课程设计!!!急急急!!!可追加分!!!

来源:百度知道 编辑:UC知道 时间:2024/05/30 20:27:49
要求:包括主函数和子函数,用到循环和分支,用到数组,最好还用到swith,case函数!!!题目不限。。。60~80行即可!一定要写的简单,我们刚学,复杂的不现实。。。小弟学的不好,请大家帮帮忙啊!!!谢啦。。。(注:不要复制)
我的Q673788024,或直接发我邮箱:s65761474@163.com万分感谢!!!

做个标记,我加你QQ了 ,发到你邮箱去了~~~

#include<stdio.h>
main()
{
int num,indiv,ten,hundred,place;
scanf ("%d",&num);
hundred=(int)num/100;
ten=(int)(num-hundred*100)/10;
indiv=num-hundred*100-ten*10;
if(num>99) place=3;
else if(num>9) place=2;
else if(num>=0) place=1;
printf("__> %d\n",place); /*__> 无实际意义,只是为了指示%d更清楚*/
swith(place)
{
case 3 :printf("%d %d %d\n",hundred,ten,indiv);break;
case 2 :printf("%d %d\n",ten,indiv);break;
case 1 :printf("%d\n",indiv);break;
}

}

哇哇,分好多,给你一个
barycenter.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

//#define NDEBUG
#include <assert.h>

#include "barycenter.h"

struct barycenter cal_barycenter(struct point **, cons