全文预览

c c++笔目及答案

上传者:叶子黄了 |  格式:pdf  |  页数:43 |  大小:3465KB

文档介绍
(\rstruct stu *s;\rint n,age;\rprintf("Please input the length of seqlist:\nH);\rscanf("%d”,&n);\rs = creatlist(n);\rdisplay(s);\rprintf("Please input the age:\nM);\rscanf("}cT,&age);\rdeletelist(s,age);\rdisplay(s);\rreturn 0;\r}.\r2Y?1Z~+PhZ€n €‚ƒ„…B†„#\rrstu\r#i nclude "stdio.h"\r#i nclude "conio.h"\rvoid uppers(char *s,char *us)\r{\rfor( ;*s!='\0' ;s++,us++)\r{\rif(*s>=,a,&&*s<=,z,)\r* us = *s-32;\relse\r* us = *s;\r}\r* us = '\0';\r}\rint main()\r(\rchar *s,*us;\rchar ss[20];\rprintf("Please input a string :\nH);\rscanf(,'%s,,,ss);\rs = ss;\ruppers(s,us);\rprintf("The result is:\n%s\n,,,us);.\rgetch();\r)

收藏

分享

举报
下载此文档