摘要: http://www.centoscn.com/image-text/install/2014/0504/2905.htmlhttp://blog.sina.com.cn/s/blog_53ec9d910102vayw.htmlhttp://www.aiplaypc.com/289.htmlhttp... 阅读全文
posted @ 2016-01-11 17:00 KinXing 阅读(167) 评论(0) 推荐(0) 编辑
摘要: package com.perm;public class Permutation { public static void perm(int[] num, int i) { if (i i; k--) { num[k] = num[k -... 阅读全文
posted @ 2014-12-16 21:06 KinXing 阅读(155) 评论(0) 推荐(0) 编辑
摘要: http://snoopyxdy.blog.163.com/blog/static/60117440201111203743614/http://bbs.csdn.net/topics/390476035 阅读全文
posted @ 2014-07-31 13:25 KinXing 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;int main(int argc, char const *argv[]){ multiset > num; num.insert(3); num.insert(1); num.insert(2); num.insert(... 阅读全文
posted @ 2014-07-21 23:46 KinXing 阅读(258) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;typedef struct Student{ int id; int age; Student *next;}Student;Student* createList(int num){ Student * head = (Student *)malloc(sizeof(Student)); Student *p; p = head; int count = 0; while (num > 0) { Student *node = (Student *)malloc(s... 阅读全文
posted @ 2014-03-16 16:02 KinXing 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 说明:执行的环境ubuntu 12.04 + gcc1.编写源代码(5个文件)1)名称为main.c,代码如下:#include "my1.h"#include "my2.h"int main(){ my1_print("hello my1!"); my2_print("hello my2!"); return 0;}2)名称为my1.h,代码如下:#ifndef _MY_1_H#define _MY_1_Hvoid my1_print(char *print_str);#endif3)名称为my2.h,代码如下: 阅读全文
posted @ 2014-02-08 15:16 KinXing 阅读(16112) 评论(1) 推荐(1) 编辑
摘要: 1 #include 2 using namespace std; 3 4 void swap(int &x, int &y) 5 { 6 x = x^y; 7 y = x^y; 8 x = x^y; 9 }10 11 void rand_n(int array[], int len) 12 {13 int i;14 for (i = 0; i < len; ++i)15 {16 swap(array[i], array[rand() % len]);17 }18 19 for (i = 0; i < len... 阅读全文
posted @ 2014-02-07 16:16 KinXing 阅读(535) 评论(0) 推荐(0) 编辑