如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
Asweallknow,theeducationsysteminChinaistest-orientededucation.However,itcountsthegradesmost.Thismayleadtostudentsmakealltheireffortsonstudying.Atthesametime,theywillignorethedevelopoftalentsandabilities,whichwillresultintheaveragequalityofthestudents,becomeworseandworse,whichdogreatharmtothecountryandsociety.Ontheotherhand,tothestudents,thissystemgivesthemgreatpressure,whichmayleadtothepsychologyproblems.Sotoavoidthedisadvantagesofthetest-orientededucation,weshouldpursuethequality-orientededucation,whichnotonlycountsthegrades,butalsotheotherabilitiesandpersonalitiesofthestudents.What’smore,weshouldpaymoreattentiontotakecareofthestudents’bodyandheart.Writing.bingoenglish.com/ncewriting/index.html1.输入两个正整数,m和n,求其最大公约数和最小公倍数。#include<stdio.h>voidmain(){inthcf(int,int);/*函数声明*/intlcd(int,int,int);/*函数声明*/intu,v,h,l;printf("Pleaseinputtwonumbers:\n");scanf("%d,%d",&u,&v);h=hcf(u,v);printf("H.C.F=%d\n",h);l=lcd(u,v,h);printf("L.C.D=%d\n",l);}inthcf(intu,intv){intt,r;if(v>u){t=u;u=v;v=t;}while((r=u%v)!=0){u=v;v=r;}return(v);}intlcd(intu,intv,inth){return(u*v/h);}2.输入一行字符,分别统计出其中字母、空格、数字和其他字符的个数。#include<stdio.h>intletter,digit,space,others;voidmain(){voidcount(char[]);chartext[80];printf("Pleaseinputstring:\n");gets(text);printf("string:\n");puts(text);letter=0;digit=0;space=0;others=0;count(text);printf("letter:%d,digit:%d,space:%d,others:%d\n",letter,digit,space,others);}voidcount(charstr[]){inti;for(i=0;str[i]!='\0';i++)if((str[i]>='a'&&str[i]<='z')||(str[i]>='A'&&str[i]<='Z'))letter++;elseif(str[i]>='0'&&str[i]<='9')digit++;elseif(str[i]==32)space++;elseothers++;}3.输入一个正整数求出它是几位数;输出原数和位数。#include<stdio.h>intdigit;voidmain(){voidcount(char[]);chartext[80];printf("Pleaseinputnumbers:\n");gets(text);printf("Numbers:\n");puts(text);digit=0;count(text);printf("digit:%d\n",digit);}voidcount(charstr[]){inti;for(i=0;str[i]!='\0';i++)if(str[i]>='0'&&str[i]<='9')digit++;}4.输入一个正整数,输出原数并逆序打印出各位数字。#include<stdio.h>voidinvertLongInt(long);voidmain(){unsignedlongiNumber;prin