实例介绍
大富翁游戏、命令行实现、C/C++语言、支持最多4人、有部分测试用例、开发环境VS2005
【实例截图】
【核心代码】
Rich
└── Rich
├── include
│ ├── command.h
│ ├── gift.h
│ ├── magic.h
│ ├── map.h
│ ├── player.h
│ ├── printMap.h
│ ├── rich_decl.h
│ ├── rich.h
│ └── util.h
├── make.exe
├── makefile
├── msvc
│ ├── ATestStubC.c
│ ├── ATestStubCXX.cpp
│ ├── CaseState.ini
│ ├── Debug
│ │ ├── ATestStubC.obj
│ │ ├── ATestStubCXX.obj
│ │ ├── BuildLog.htm
│ │ ├── command.obj
│ │ ├── gift.obj
│ │ ├── magic.obj
│ │ ├── main.obj
│ │ ├── map.obj
│ │ ├── mt.dep
│ │ ├── player.obj
│ │ ├── printMap.obj
│ │ ├── Rich.exe
│ │ ├── Rich.exe.intermediate.manifest
│ │ ├── rich.obj
│ │ ├── Rich.pdb
│ │ ├── Test_command.obj
│ │ ├── Test_gift.obj
│ │ ├── Test_map.obj
│ │ ├── Test_player.obj
│ │ ├── Test_rich.obj
│ │ ├── Test_util.obj
│ │ ├── ut.exe
│ │ ├── util.obj
│ │ ├── ut.pdb
│ │ ├── ut_vc80.idb
│ │ ├── ut_vc80.pdb
│ │ ├── vc80.idb
│ │ └── vc80.pdb
│ ├── Rich.ncb
│ ├── Rich.ncb.r51
│ ├── Rich.ncb.r65
│ ├── Rich.sln
│ ├── Rich.suo
│ ├── Rich.suo.r51
│ ├── Rich.suo.r65
│ ├── Rich.vcproj
│ ├── Rich.vcproj.CHINA.w60028622.user
│ ├── ut.ncb
│ ├── ut.vcproj
│ └── ut.vcproj.CHINA.w60028622.user
├── output
│ ├── compile
│ │ ├── compile_log.txt
│ │ └── Rich.exe
│ ├── complexity
│ │ ├── avgcc.xml
│ │ ├── CCFuncReport.html
│ │ ├── cc_more_then_10.txt
│ │ └── CCProjectReport.html
│ ├── pclint
│ │ ├── pclint_log.html
│ │ └── pclint.xml
│ ├── screensaver
│ ├── st
│ │ └── st.xml
│ └── unittest
│ ├── ut_log.txt
│ └── ut.xml
├── script
│ ├── compile.bat
│ ├── complexity.bat
│ ├── gen_history_builds.js
│ ├── gen_history_builds_report.bat
│ ├── make_help.txt
│ ├── pclint.bat
│ ├── run_ci.bat
│ ├── set_env.bat
│ ├── st.bat
│ └── unittest.bat
├── src
│ ├── command.c
│ ├── gift.c
│ ├── magic.c
│ ├── main.c
│ ├── map.c
│ ├── player.c
│ ├── printMap.c
│ ├── rich.c
│ └── util.cpp
├── st
│ ├── 01.test_init_setting
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ ├── output.txt
│ │ ├── output.txt.r50
│ │ └── output.txt.r65
│ ├── 02.test_buy_land
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ ├── output.txt
│ │ ├── output.txt.r50
│ │ └── output.txt.r65
│ ├── 03.test_go_mine
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ ├── output.txt
│ │ ├── output.txt.r50
│ │ └── output.txt.r65
│ ├── 04.test_gift_house
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ ├── output.txt
│ │ ├── output.txt.r50
│ │ └── output.txt.r65
│ ├── 05.test_gift_house
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ └── output.txt
│ ├── 06.test_tool_house
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ ├── output.txt
│ │ ├── output.txt.r50
│ │ └── output.txt.r65
│ ├── 10.test_buy_block_and_load_block
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ ├── output.txt
│ │ ├── output.txt.r50
│ │ └── output.txt.r65
│ ├── 13.test_sell_land
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ └── output.txt
│ ├── 14.test_exit_gameover
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ └── output.txt
│ ├── 15.test_nomoney_gameover
│ │ ├── cmd.txt
│ │ ├── expected.txt
│ │ └── output.txt
│ └── readme.txt
├── tools
│ ├── ci
│ │ ├── add_vc_vars.bat
│ │ └── config.xml
│ ├── pclint
│ │ ├── custom.lnt
│ │ ├── dist_pclint.bat
│ │ ├── DistributedLint.xml
│ │ ├── include.lnt
│ │ ├── lint-nt.exe
│ │ ├── lnt
│ │ │ ├── au-ds.lnt
│ │ │ ├── au-misra.lnt
│ │ │ ├── au-sm.lnt
│ │ │ ├── co-arch.lnt
│ │ │ ├── co-aztec.lnt
│ │ │ ├── co-bc4.lnt
│ │ │ ├── co-bc4wi.lnt
│ │ │ ├── co-bc5.h
│ │ │ ├── co-bc5.lnt
│ │ │ ├── co-bc.lnt
│ │ │ ├── co-bcos2.lnt
│ │ │ ├── co-bcwin.lnt
│ │ │ ├── co-byte.h
│ │ │ ├── co-byte.lnt
│ │ │ ├── co-c86.lnt
│ │ │ ├── co-c86p.lnt
│ │ │ ├── co-cb.lnt
│ │ │ ├── co-cc386.lnt
│ │ │ ├── co-cc86.lnt
│ │ │ ├── co-cosm.lnt
│ │ │ ├── co-desm.lnt
│ │ │ ├── co-diab.lnt
│ │ │ ├── co-dl.lnt
│ │ │ ├── co-ec.lnt
│ │ │ ├── co-frank.lnt
│ │ │ ├── co-gnu3.lnt
│ │ │ ├── co-gnu.lnt
│ │ │ ├── co-hc.lnt
│ │ │ ├── co-hpacc.lnt
│ │ │ ├── co-hp.lnt
│ │ │ ├── co-ht.lnt
│ │ │ ├── co-iar78.lnt
│ │ │ ├── co-iar80.lnt
│ │ │ ├── co-iar.lnt
│ │ │ ├── co-ibm32.lnt
│ │ │ ├── co-ibmc2.lnt
│ │ │ ├── co-icb.lnt
│ │ │ ├── co-in386.lnt
│ │ │ ├── co-in96.lnt
│ │ │ ├── co-in.lnt
│ │ │ ├── co-kc166.lnt
│ │ │ ├── co-kc51.lnt
│ │ │ ├── co-lc2.lnt
│ │ │ ├── co-lc33.lnt
│ │ │ ├── co-lc3.lnt
│ │ │ ├── co-lc6.lnt
│ │ │ ├── co.lnt
│ │ │ ├── co-mc386.lnt
│ │ │ ├── co-mc86.lnt
│ │ │ ├── co-mc.h
│ │ │ ├── co-msc20.lnt
│ │ │ ├── co-msc40.lnt
│ │ │ ├── co-msc50.lnt
│ │ │ ├── co-msc60.lnt
│ │ │ ├── co-msc70.lnt
│ │ │ ├── co-msc.lnt
│ │ │ ├── co-mswin.lnt
│ │ │ ├── co-mwc.lnt
│ │ │ ├── co-powrc.lnt
│ │ │ ├── co-qc88.lnt
│ │ │ ├── co-sc7.lnt
│ │ │ ├── co-sc.lnt
│ │ │ ├── co-sun5.lnt
│ │ │ ├── co-sun6.lnt
│ │ │ ├── co-sun.lnt
│ │ │ ├── co-tc.lnt
│ │ │ ├── co-tcwin.lnt
│ │ │ ├── co-ti320.lnt
│ │ │ ├── co-tsc.lnt
│ │ │ ├── co-unix.lnt
│ │ │ ├── co-vage.h
│ │ │ ├── co-vage.lnt
│ │ │ ├── co-wc16.lnt
│ │ │ ├── co-wc32.lnt
│ │ │ ├── co-wcos2.lnt
│ │ │ ├── co-wh.lnt
│ │ │ ├── co-ztc.lnt
│ │ │ ├── env-bc5.lnt
│ │ │ ├── env-bwin.lnt
│ │ │ ├── env-cb.lnt
│ │ │ ├── env-cw6.lnt
│ │ │ ├── env-cw.lnt
│ │ │ ├── env-keil.lnt
│ │ │ ├── env-mew.lnt
│ │ │ ├── env-om.lnt
│ │ │ ├── env-pwb.lnt
│ │ │ ├── env-si.lnt
│ │ │ ├── env-sl3.lnt
│ │ │ ├── env-sled.lnt
│ │ │ ├── env-tide.lnt
│ │ │ ├── env-vc2.lnt
│ │ │ ├── env-vc4.lnt
│ │ │ ├── env-vc5.lnt
│ │ │ ├── env-vc6.lnt
│ │ │ ├── env-vc7.lnt
│ │ │ ├── env-vc.lnt
│ │ │ ├── env-xml.lnt
│ │ │ ├── lib-atl.lnt
│ │ │ ├── lib-bcl5.lnt
│ │ │ ├── lib-bcl.h
│ │ │ ├── lib-bcl.lnt
│ │ │ ├── lib-corb.lnt
│ │ │ ├── lib-in.h
│ │ │ ├── lib-mfc.lnt
│ │ │ ├── lib-oinv.lnt
│ │ │ ├── lib-ole.lnt
│ │ │ ├── lib-owl5.lnt
│ │ │ ├── lib-owl.lnt
│ │ │ ├── lib-rw.h
│ │ │ ├── lib-rw.lnt
│ │ │ ├── lib-stl.lnt
│ │ │ ├── lib-tv.lnt
│ │ │ ├── lib-w32.lnt
│ │ │ ├── lib-win.lnt
│ │ │ ├── lib-wnt.lnt
│ │ │ ├── lib-zapp.lnt
│ │ │ ├── lib-zinc.lnt
│ │ │ ├── lint2msg.c
│ │ │ ├── lint2msg.exe
│ │ │ ├── sl.c
│ │ │ ├── sl-c86.c
│ │ │ ├── sl-desm.c
│ │ │ ├── sl-lc2.c
│ │ │ ├── sl-mwc.c
│ │ │ └── sl-qc88.c
│ │ ├── msg.txt
│ │ ├── options.lnt
│ │ ├── patch.exe
│ │ ├── pr.exe
│ │ ├── std_dist.lnt
│ │ └── std.lnt
│ ├── screensaver
│ │ ├── screensaver.bat
│ │ ├── screensaver.html
│ │ └── screen.scr
│ ├── sourcemonitor
│ │ ├── ccanalyzer.exe
│ │ ├── cccompare.exe
│ │ ├── Contributions
│ │ │ ├── Ant_XSL-Coene
│ │ │ │ ├── barchart.xsl
│ │ │ │ ├── build.xml
│ │ │ │ ├── group_by_file.xsl
│ │ │ │ ├── group_by_metric.xsl
│ │ │ │ ├── sm_by_metric.html
│ │ │ │ ├── sm_details.html
│ │ │ │ ├── sm_details.xml
│ │ │ │ ├── sm_m1_statements.svg
│ │ │ │ ├── sm_m5_classes.svg
│ │ │ │ ├── sm_m6_methods.svg
│ │ │ │ ├── sm_summary.html
│ │ │ │ └── sm_summary.xml
│ │ │ ├── Bassam Abdul-Baki Report.xsl
│ │ │ └── van_de_Burgt
│ │ │ └── SourceMonitor.xslt
│ │ ├── filter.txt
│ │ ├── License.txt
│ │ ├── python24.dll
│ │ ├── README.txt
│ │ ├── Samples
│ │ │ ├── sample_checkpoint_details.xml
│ │ │ ├── sample_checkpoint_summary.xml
│ │ │ └── sample_commands.xml
│ │ ├── sm.cfg
│ │ ├── SourceMonitor.chm
│ │ ├── SourceMonitor.exe
│ │ ├── SourceMonitor.log
│ │ ├── SourceMonitor.log.mine
│ │ ├── SourceMonitor.log.r50
│ │ ├── SourceMonitor.log.r65
│ │ └── XML_Schemas_DTDs
│ │ ├── sourcemonitor_commands.dtd
│ │ ├── sourcemonitor_commands.xsd
│ │ ├── sourcemonitor_metrics.dtd
│ │ └── sourcemonitor_metrics.xsd
│ ├── unixutil
│ │ ├── basename.exe
│ │ ├── cat.exe
│ │ ├── cp.exe
│ │ ├── cut.exe
│ │ ├── date.exe
│ │ ├── diff.exe
│ │ ├── dirname.exe
│ │ ├── echo.exe
│ │ ├── find.exe
│ │ ├── gawk.exe
│ │ ├── grep.exe
│ │ ├── mkdir.exe
│ │ ├── msxsl.exe
│ │ ├── mtee.exe
│ │ ├── mv.exe
│ │ ├── rmdir.exe
│ │ ├── rm.exe
│ │ ├── sed.exe
│ │ ├── sleep.exe
│ │ ├── sort.exe
│ │ ├── split.exe
│ │ ├── type.exe
│ │ ├── wc.exe
│ │ ├── which.exe
│ │ ├── xargs.exe
│ │ └── xecho.exe
│ ├── ut
│ │ ├── include
│ │ │ ├── AMock
│ │ │ │ ├── llt_Action.h
│ │ │ │ ├── llt_AMockCxxFunc.h
│ │ │ │ ├── llt_AMockCxx.h
│ │ │ │ ├── llt_AMock_ErrorCode.h
│ │ │ │ ├── llt_AMockFunc.h
│ │ │ │ ├── llt_AMock.h
│ │ │ │ ├── llt_CallFunTime.h
│ │ │ │ ├── llt_ChainCtrl.h
│ │ │ │ ├── llt_ChainReturn.h
│ │ │ │ ├── llt_format.h
│ │ │ │ ├── llt_InternalMarco.h
│ │ │ │ ├── llt_Match.h
│ │ │ │ ├── llt_PageLineInfo.h
│ │ │ │ ├── llt_ParaInfo.h
│ │ │ │ ├── LLT_ParaInternal.h
│ │ │ │ ├── llt_Relation.h
│ │ │ │ ├── llt_ReturnAction.h
│ │ │ │ ├── LLTStub
│ │ │ │ │ ├── llt_Api.h
│ │ │ │ │ ├── llt_config.h
│ │ │ │ │ ├── llt_Macro_Cfg.h
│ │ │ │ │ ├── llt_osadapt.h
│ │ │ │ │ ├── llt_Os_Internal.h
│ │ │ │ │ └── LLTStub.h
│ │ │ │ └── llt_Value.h
│ │ │ ├── Common
│ │ │ │ └── DT_Type.h
│ │ │ ├── DMT
│ │ │ │ ├── dbghelp.h
│ │ │ │ ├── DT_API.h
│ │ │ │ ├── DT_BrdTemplate.h
│ │ │ │ ├── DT_Center.h
│ │ │ │ ├── DT_CPUPID.h
│ │ │ │ ├── DT_DecodeMsg.h
│ │ │ │ ├── DT_DmtComm.h
│ │ │ │ ├── DT_Dopra.h
│ │ │ │ ├── DT_FileLine.h
│ │ │ │ ├── DT_Frame.h
│ │ │ │ ├── DT_MockCallTimes.h
│ │ │ │ ├── DT_MockDebugPrint.h
│ │ │ │ ├── DT_Mock.h
│ │ │ │ ├── DT_MockInvoke.h
│ │ │ │ ├── DT_MockMatch.h
│ │ │ │ ├── DT_MockPrio.h
│ │ │ │ ├── DT_ModuleInfo.h
│ │ │ │ ├── DT_MsgInit.h
│ │ │ │ ├── DT_Pid.h
│ │ │ │ ├── DT_PidMock.h
│ │ │ │ ├── DT_plt_Dopra.h
│ │ │ │ ├── DT_Queue.h
│ │ │ │ ├── DT_QueueManage.h
│ │ │ │ ├── DT_TaskQueue.h
│ │ │ │ ├── DT_TaskSwitch.h
│ │ │ │ ├── DT_TimerManage.h
│ │ │ │ └── DT_Vos.h
│ │ │ ├── DTCenterVer.h
│ │ │ ├── gmock
│ │ │ │ ├── gmock-actions.h
│ │ │ │ ├── gmock-cardinalities.h
│ │ │ │ ├── gmock-generated-actions.h
│ │ │ │ ├── gmock-generated-actions.h.pump
│ │ │ │ ├── gmock-generated-function-mockers.h
│ │ │ │ ├── gmock-generated-function-mockers.h.pump
│ │ │ │ ├── gmock-generated-matchers.h
│ │ │ │ ├── gmock-generated-matchers.h.pump
│ │ │ │ ├── gmock-generated-nice-strict.h
│ │ │ │ ├── gmock-generated-nice-strict.h.pump
│ │ │ │ ├── gmock.h
│ │ │ │ ├── gmock-matchers.h
│ │ │ │ ├── gmock-more-actions.h
│ │ │ │ ├── gmock-printers.h
│ │ │ │ ├── gmock-spec-builders.h
│ │ │ │ └── internal
│ │ │ │ ├── gmock-generated-internal-utils.h
│ │ │ │ ├── gmock-generated-internal-utils.h.pump
│ │ │ │ ├── gmock-internal-utils.h
│ │ │ │ └── gmock-port.h
│ │ │ ├── gtest
│ │ │ │ ├── gtest-death-test.h
│ │ │ │ ├── gtest.h
│ │ │ │ ├── gtest-message.h
│ │ │ │ ├── gtest-param-test.h
│ │ │ │ ├── gtest-param-test.h.pump
│ │ │ │ ├── gtest_pred_impl.h
│ │ │ │ ├── gtest_prod.h
│ │ │ │ ├── gtest-spi.h
│ │ │ │ ├── gtest-test-part.h
│ │ │ │ ├── gtest-typed-test.h
│ │ │ │ ├── internal
│ │ │ │ │ ├── gtest-death-test-internal.h
│ │ │ │ │ ├── gtest-filepath.h
│ │ │ │ │ ├── gtest-internal.h
│ │ │ │ │ ├── gtest-linked_ptr.h
│ │ │ │ │ ├── gtest-param-util-generated.h
│ │ │ │ │ ├── gtest-param-util-generated.h.pump
│ │ │ │ │ ├── gtest-param-util.h
│ │ │ │ │ ├── gtest-port.h
│ │ │ │ │ ├── gtest-string.h
│ │ │ │ │ ├── gtest-tuple.h
│ │ │ │ │ ├── gtest-tuple.h.pump
│ │ │ │ │ ├── gtest-type-util.h
│ │ │ │ │ ├── gtest-type-util.h.pump
│ │ │ │ │ └── Ver
│ │ │ │ │ ├── aa.txt
│ │ │ │ │ └── DTCenterVer.h
│ │ │ │ ├── msxml6did.h
│ │ │ │ ├── msxml6.h
│ │ │ │ ├── msxml6.idl
│ │ │ │ ├── UdpSocket.h
│ │ │ │ └── XmlBaseCmp.h
│ │ │ ├── llt_AutoStarUT.h
│ │ │ └── TraceLog
│ │ │ └── Log.h
│ │ ├── libs
│ │ │ ├── AutoStarUTAMock_MTD.lib
│ │ │ ├── util.obj
│ │ │ ├── ut_main.cpp
│ │ │ └── ut_main.obj
│ │ └── ut_exe.cft
│ └── xslt
│ ├── buildstatus.xsl
│ ├── cc_detail.xsl
│ ├── historybuilds.xsl
│ ├── pclint.xsl
│ └── projectInfo.xsl
└── ut
└── src
├── Test_command.cpp
├── Test_gift.cpp
├── Test_helper.h
├── Test_map.cpp
├── Test_player.cpp
├── Test_rich.cpp
└── Test_util.cpp
52 directories, 449 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论