随笔分类 -  C&C++

记录C语言和C++语言的一些基础知识,语法要点。
COM基础介绍
摘要:Introduction to COM - What It Is and How to Use It. http://www.codeproject.com/Articles/633/Introduction-to-COM-What-It-Is-and-How-to-Use-It COM in plain C http://www.codeproject.com/Articles/13601... 阅读全文

posted @ 2012-08-02 10:55 中道学友 阅读(437) 评论(0) 推荐(0) 编辑

编程练习-螺旋数组
摘要:题目如下 =========== 43 44 45 46 47 .. ..42 21 22 23 24 25 2641 20 07 08 09 10 2740 19 06 01 02 11 2839 18 05 04 03 12 2938 17 16 15 14 13 3037 36 35 34 33 32 31 看清以上数字排列的规律, 设1点的坐标是(0,0), x方向向右为正, y方向向下为... 阅读全文

posted @ 2010-11-02 00:39 中道学友 阅读(504) 评论(1) 推荐(0) 编辑

C语言运算符的优先级表与结合性要点
摘要:表达式 优先级 ()(小括号) [](数组下标) .(结构成员) ->(指针型结构成员) ↑最高 !(逻辑非) .(位取反) -(负号) ++(加1) --(减1) &(变量地址)   │ *(指针所指内容)  type(函数说明)  sizeof(长度计算)  │ *(乘)     /(除) ... 阅读全文

posted @ 2009-11-05 23:02 中道学友 阅读(2218) 评论(0) 推荐(0) 编辑

编程练习-反转链表
摘要:Code Snippet #include <iostream> #define Reverse2 using namespace std; struct linka{     int data;     linka* next; }; void reverse(linka* &head) ... 阅读全文

posted @ 2009-11-05 22:46 中道学友 阅读(283) 评论(0) 推荐(0) 编辑

编程练习- 尝试写出String类的成员函数实现
摘要:#include <string.h>//***题目部分************************************class String{public: String(const char *str = NULL); String(const String &another); ~ String(); String & operator =(const ... 阅读全文

posted @ 2009-11-05 22:42 中道学友 阅读(983) 评论(0) 推荐(0) 编辑

编程练习-自己写一个strcpy
摘要:char *strcpy_(char *strDest, const char *strSrc){ // Error if(strSrc == NULL) return NULL; const char* p = strSrc;//const在?*号左边,指针可以变,所指物不能变! char* q = strDest; p = strSrc; q = strDest; while(*p != '\... 阅读全文

posted @ 2009-11-05 22:34 中道学友 阅读(515) 评论(0) 推荐(0) 编辑

编程练习- 链表题目-反序,合并
摘要:Code Snippet #include <iostream> #include<fstream> using namespace std; struct Node {         int data ;        ... 阅读全文

posted @ 2009-11-05 22:30 中道学友 阅读(356) 评论(0) 推荐(0) 编辑

编程练习- 找第二大的数
摘要:Code Snippet #include <iostream> #include <fstream> using namespace std; int main() ...{     ifstream inFile("d:\intArray.txt");     ... 阅读全文

posted @ 2009-11-05 22:25 中道学友 阅读(396) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示