摘要: 单链表反转笔记: 1 #include 2 #include 3 using namespace std; 4 5 struct ListNode 6 { 7 int val; 8 ListNode* next; 9 ListNode(int i):val(i),next(... 阅读全文
posted @ 2015-04-07 11:26 90Zeng 阅读(2508) 评论(0) 推荐(1) 编辑
摘要: 1.如下代码输出结果是什么?12345678910111213141516#includechar *myString(){char buffer[6] = {0};char *s ="Hello World!";for (int i =0; i using namespace std;class ... 阅读全文
posted @ 2015-04-07 11:03 90Zeng 阅读(4123) 评论(1) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 void knuth(int n, int m) 6 { 7 srand((unsigned int)time(NULL)); 8 for (int i = 0; i... 阅读全文
posted @ 2015-04-07 09:53 90Zeng 阅读(457) 评论(0) 推荐(0) 编辑