全文预览

2012全国计算机2级C

上传者:你的雨天 |  格式:pdf  |  页数:89 |  大小:4721KB

文档介绍
Warning : The document was created with Spire.PDF for .NET.\rcharch;\rpublic:\rn**[**\rclassNumber\r{ protected:\rintnum;\rpublic:\rclassGrid:publicLetter,publicNumber\r{ public:\rn**?**\rfriendostream&operator#(ostream&o,Grid&g); };\r{ o<vT<vg,chv<”,”<<g.numv<T\rretumo; }\rintmain()\r{ Gridg('C;3);.\rcout#HGridreference:H# g # en d l;\rretumO; }\r†W$‡ˆ‰\r(1) Letter(char c = 'A') {ch = c;}\r(2) Number(int n = 0) {num = n;}\r(3) Grid(char c = 'A\ int n = 0) : Letter(c), Number(n){}\r(4) ostream &operator#(ostream &o,Grid &g)\r†Š.‹Œ‰\r#$Ž(AC2(XY?@?Byz^tux?@\r‘ >  (3 ) /'WM“ 0”•a"–ZC2(XY—˜/' (4 ) \rtuf(™š?@F›#/'O'œx ostream(žŸ'\n¡/'¢£\r¤@x¥“ << ” 0}

收藏

分享

举报
下载此文档