韩国东国大学游戏多媒体专业C教材.ppt
《韩国东国大学游戏多媒体专业C教材.ppt》由会员分享,可在线阅读,更多相关《韩国东国大学游戏多媒体专业C教材.ppt(7页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Getting Started(Chapter 1)Seung-Hyun YoonDongguk University Writing a Simple C+ProgramC+program consists of one or more functionsMust have the main functionReturn value of the main functionsuccess:0fail:otherwiseint main()/statements return 0;A First Look at IO Libraryiostream LibraryStandard input:
2、cin(istream object)Standard output:cout(ostream object)Standard error:cerr(ostream object)Standard log:clog(ostream object)I/O Operators support all of the built-in types#include /test2.cppusing namespace std;int main()cout Enter two number:v1 v2;cout The sum of v1 and v2 is v1+v2 endl;return 0;A Program Using IO Library
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 韩国 大学 游戏 多媒体 专业 教材
限制150内