全文预览

c语言入门

上传者:业精于勤 |  格式:pdf  |  页数:39 |  大小:4418KB

文档介绍
åÝF†,YZ`abïð…†FD\rE\rCK×؅†NOFñò—ëÇ\rvoidoperator=(constDate&)\rZŠÛÜôIö猵?÷ø@×ØFNOIJFùô‘Pvoid\r–~úF¤IJ@Custû@~DateF¤IJ?–FI\rJ_¨ü~?perator=,ýJ¨ü~³lrFDEFþP?ý\rJp?F~ÿ 0@P`p?\r??`?\r??`\rttincludeiostream,h\rftincludestring,h\rclassDate\r(\rintmo,da,yr;\rchar*month;\rpublic:\rDate(intm=0,intd=0,inty=0);\r~Date();\rvoidoperator=(constDate&);\rvoiddisplay()const;\r)<\rDate::Date(intm,intd,inty)\rstaticchar*mos[]=EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rJanuary,February,March,April,May,June,\rJuly,August,September,October,November,December\r)-\rmo=m;da=d;yr=y;\rif(m!=0)\r(\rmonth=newchar[strlen(mos[m-1])+1];\rstrcpy(month,mos[m-l]);\r)\relsemonth=0;\r)\rDate:::Date()\r(\rdelete[]month;\r)\rvoidDate::display()const\r(\rif(month!=0)cout<charname[25];\rcin

收藏

分享

举报
下载此文档