摘要: #include#include#include#include#includeusing namespace std;int turn_str(char s[],string str[]){ int i,j=0,k=0,count=0; for(i=0;s[i]!='\0';i++) { if((... 阅读全文
posted @ 2015-11-04 20:57 式微胡不归 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #includevoid turn(char (*s)[3]){ scanf("%c",&(*++s)[0]); //修改某个值}void print(char (*s)[3]){ for(int i=0;i<3;i++) printf("%s\n",&(*s++)); //打印某一行}int m... 阅读全文
posted @ 2015-11-04 20:10 式微胡不归 阅读(907) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;class Singleton{private: Singleton(){ cout << "singleton construct" << endl; } static Singleton* _instance; class Cleaner ... 阅读全文
posted @ 2015-11-04 17:28 式微胡不归 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include#include #include#includechar maze[100][100];int step[15][15];int n, m;int sm,sn,em,en;int dn[4]={ 0, 1, 0, -1 ... 阅读全文
posted @ 2015-11-04 14:31 式微胡不归 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 两个链表#define _CRT_SECURE_NO_WARNINGS#include#include#includestruct Student{ int Grade; char Major[50]; int Class; int ID; char Name[20]; struct Student... 阅读全文
posted @ 2015-11-04 14:29 式微胡不归 阅读(189) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---#define _CRT_SECURE_NO_WARNINGS#include#include#includeusing namespace std;typedef struct tree{ char data; tree *lchild; tree *rchild;}Bit... 阅读全文
posted @ 2015-11-04 14:23 式微胡不归 阅读(225) 评论(0) 推荐(0) 编辑