摘要: if (expression) statement 阅读全文
posted @ 2017-04-02 20:31 Micheal_you 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main(void){ 4 const int FIRST_OZ = 46; 5 const int NEXT_OZ = 20; 6 int ounces, cost; 7 8 printf(" ounces cost\n"); 9 for (ounces = 1, cos... 阅读全文
posted @ 2017-04-02 12:16 Micheal_you 阅读(142) 评论(0) 推荐(0) 编辑
摘要: REMEBER : You should limit yourself to using only < and > in floating-point comparisons. while(status == 1) is ture. and while(status = 1) is ture ... 阅读全文
posted @ 2017-04-02 11:59 Micheal_you 阅读(164) 评论(0) 推荐(0) 编辑
摘要: REMEBER: A for loop is appropriate when the loop involves initializing and updating a variable, and a while loop is better when the conditions are oth 阅读全文
posted @ 2017-04-02 11:43 Micheal_you 阅读(117) 评论(0) 推荐(0) 编辑
摘要: The first reason managers are important is that organizations need their managerial skills and abilities more than ever in these uncertain,complex,and 阅读全文
posted @ 2017-03-26 10:02 Micheal_you 阅读(366) 评论(0) 推荐(0) 编辑
摘要: Remeber: 1 Assignment: you can assign an address to a pionter. Do not dereference an uninitialized pointer..for example, int *pt; *pt = 5.(correct : i 阅读全文
posted @ 2017-03-19 21:29 Micheal_you 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Remeber : 1 C now has a function-prototyping mechanism that checks whether a function call has the correct number and correct kind of arguments . 2 th 阅读全文
posted @ 2017-03-19 18:59 Micheal_you 阅读(136) 评论(0) 推荐(0) 编辑
摘要: int function1(int x); int function2(int *ptr); Remeber: 1 Use the first form if the function needs a value for some calculation or action; 2 Use the s 阅读全文
posted @ 2017-03-19 15:30 Micheal_you 阅读(95) 评论(0) 推荐(0) 编辑
摘要: The #define statement can be used for character and string constants,too . The following example are valid: 阅读全文
posted @ 2017-03-19 12:31 Micheal_you 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 【1.】 "protected: virtual struct AFX_MSGMAP const * __thiscall SelectDLG::GetMessageMap(void)const " 出现这个原因是因为创建一个新类时,不能设置基类为CObject,随便选择了一个基类,然后,在将其改为 阅读全文
posted @ 2016-03-04 11:43 Micheal_you 阅读(391) 评论(0) 推荐(0) 编辑