全文预览

c语言期末复习—c语言

上传者:梦溪 |  格式:pdf  |  页数:52 |  大小:6106KB

文档介绍
eated with Spire.PDF for .NET.\rfprint f ( fp,F0RMA7ustu[ i ] .num, stu[ i ] .name,s tu[ i ] . score);\rfclose( fp);\r)\rvoid output (char a[ ] z jnt sn) // s n G}~p"%P`Sp`a\r(\rint i ;\rFILE *fp;\ri f (( fp=fopen(a,"r") )==NULL)\r(\rprint f ("Cannot open f i Ie.");\rexi t (0);\r)\rcout<<endl<<""%`ap?8?"<<endl;\rfor( i=0; i<sn; i++)\r(\rf scanf ( fp,FORMAlu&stu[ i ] .numzs tu[ i ] .name,&stu[ i ] .score);\rprint f (FORMAIustu[ i ] .num,s tu[ i ] .name.s tu[ i ] .score);\rprint f (An")u\r)\rfclose( fp);\r}\rvoid main()\r(\rchar a[20];\rcout<<“"#P`h?\rcin%a;\rinput (a); / / ƒ#P`h:?„<{\n†‡_ˆG‰\routput (a,N); / / ƒ#:?N „<Š‹Œ\n"%?8p+\rŽ G ?r?8P`Ss/‘’b !“„<”~mS•|\r?– G “˜™š”› œ  stu.txtP`b”~"#z_žŸ?8b„”~ ?\routput(“stu.txt“,N);¡4¢|

收藏

分享

举报
下载此文档