2)结构体在Windows编程中的应用(选作).ppt
文本预览下载声明
C++程序设计与数据结构基础 本讲概要 练习55——结构体变量的初始化和输入输出 本讲概要 练习56——用结构体数组查找书库库存信息 本讲概要 练习57——结构体数组(指针)做函数参数 本讲概要 练习58——-、.与++、--、*的优先级 本讲概要 练习59——用结构体实现书P118.习题17 练习59——用结构体实现书P118.习题17(2) 练习59——用结构体实现书P118.习题17(3) 练习59——用结构体实现书P118.习题17(4) 本讲概要 文件简介... 使用VC++输出文件 练习 使用VC++将文件数据读入变量 文件读写方式总结 文件练习1 文件练习2 本讲概要 P76.第3章习题. 2. 阅读下列程序并写出运行结果 P76.第3章习题. 2. 阅读下列程序并写出运行结果 P76. 第3章习题 3. 编写下列程序 P76. 第3章习题 3. 编写下列程序 P115. 第4章习题 2. 看程序写结果 P117. 第4章习题 编程题 5. P118. 第4章习题 编程题 15. 本讲概要 MsgBox使用枚举 枚举实习2 课外体验—VC小助手Visual Assist(VA) 本讲概要 课外体验—结构体在Windows编程中的应用 OPENFILENAME结构体类型 1. 练习55——结构体变量的初始化和输入输出 2. 练习56——用结构体数组查找书库库存信息 8. 课外体验 (选作) 4. 练习58——-、.与++、--、*的优先级(选作) 5. 练习59——用结构体实现书P118.习题17 3. 练习57——结构体数组(指针)做函数参数 6. 文件编程预练 1)枚举在Windows编程中的应用(选作) 2)结构体在Windows编程中的应用(选作) 7. 第3-4章指针部分作业答案 #include iostream.h #include windows.h enum EMsgBoxBtn { mb_OK = 0, mb_OkCancel = 1, mb_AbortRetryIgnore = 2, mb_YesNoCancel = 3, mb_YesNo = 4, mb_RetryCancel = 5 }; enum EMsgBoxIcon { mb_IconNone = 0, mb_IconError = 0x10, mb_IconQuestion = 0x20, mb_IconExclamation = 0x30, mb_IconAsterisk = 0x40, mb_UserIcon = 0x80 }; enum EDlgBoxDefBtn { mb_DefButton1 = 0, mb_DefButton2 = 0x100, mb_DefButton3 = 0x200, mb_DefButton4 = 0x300 }; enum EDlgBoxCmdID { NoValue = 0, idAbort = 3, // Abort button was selected. idCancel = 2, // Cancel button was selected. idIgnore = 5, // Ignore button was selected. idNo = 7, // No button was selected. idOk = 1, // OK button was selected. idRetry = 4, // Retry button was selected. idYes = 6 // Yes button was selected. }; EDlgBoxCmdID MsgBox(char * prompt, char * title = NULL, EMsgBoxBtn buttons = mb_OK, EMsgBoxIcon icon = mb_IconNone, EDlgBoxDefBtn defBtn = mb_DefButton1, bool bSystemModal = false, bool bHelpButton = false, bool bRightJustified = false, bool bRightToLeftReading = false); // 函数声明 // ***********************************************************
显示全部