全文预览

c语言习题总结

上传者:火锅鸡 |  格式:pdf  |  页数:52 |  大小:3896KB

文档介绍
l+b.tailendl;\r)\rint main()\r(\rxiaoshu a,b;\rvoid add(xiaoshu,xiaoshu);\rcina.heada.pointa.tail;\rcinb.headb.pointb.tail;\radd(a,b);\rreturn 0;\r)\r60\rDescription\rÀ[„\n†c§'('/'ÀÈEZ[Ž†?„\nqŽ€É+,!qŽ€Éž\r\WEÀ[Ê!\rgh•j–—ËÀ?™–—x[Ì\r[?Ày”Í !\rInput\rE5?54À[!\rOutput\rEÀ[Ê!\rSample Input\r2/7\r1/7\rSample Output\r1/7.\rop\r#include <iostream>\rusing namespace std;\rstruct fenshu\r(\rint above;\rchar line;\rint below;\r)8\rvoid sub(fenshu ajenshu b)\r(\rif(a.above>b.above)\r(\rcouta.above-b.abovea.linea.belowendl;\r}else\rcoutb.above-a.abovea.linea.belowendl;\r)\rint main()\r(\rfenshu a,b;\rvoid sub(fenshu,fenshu);\rcina.abovea.linea.below;\rcinb.aboveb.lineb.below;\rsub(a,b);\rreturn 0;\r)

收藏

分享

举报
下载此文档