#define_CRT_SECURE_NO_WARNINGS1#include<iostream>#include<assert.h>usingnamespacestd;//实现单链表:typedefintDataType;typedefstructListNode{ structListNode*_pNext; DataType_data;}ListNode;ListNode*NewNode(DataTypex){ ListNode*tem=(ListNode*)mall..
分类:
其他好文 时间:
2015-12-03 17:15:55
阅读次数:
127
#define_CRT_SECURE_NO_WARNINGS1#include<iostream>#include<assert.h>#defineDEFAULTNUME3usingnamespacestd;classString{public: int&GetCount() { return*(((int*)_str)-1); } char*GetStr() { return_str; } //找到字符ch并返回它的下标 intFind(charch..
分类:
编程语言 时间:
2015-12-03 17:15:21
阅读次数:
227
#define_CRT_SECURE_NO_WARNINGS1#include<iostream>#include<assert.h>usingnamespacestd;classDate{public: voiddisplay() { cout<<_year<<"-"<<_month<<"-"<<_day<<endl; } boolIsLeapyear(intyear) { return((year/400=..
分类:
编程语言 时间:
2015-12-03 17:15:13
阅读次数:
247
#define_CRT_SECURE_NO_WARNINGS1#include<iostream>#include<assert.h>usingnamespacestd;typedefintDataType;//definedouble-circular-linked-list-nodestructListNode{ DataType_data; ListNode*_prev; ListNode*_next;};classDCListNode//double-circular-link..
分类:
编程语言 时间:
2015-12-03 17:14:34
阅读次数:
214
当前使用的是CRT5.1版本,报错截图如下:解决方法使用CRT7.1版本支持更多的加密程序。CRT7.1下载:http://pan.baidu.com/s/1pJnIfr1CRT7.1的注册信息:Name:xixiCompany:cr173serial:03-65-005213Date:05-22-2011Licensekey:AB4N5YMZTJ36Y96T3JB4P6FBACMFP2A5RDK4JFS9R7UG..
分类:
其他好文 时间:
2015-12-03 11:49:30
阅读次数:
285
(1)strstr寻找子字符串函数的实现#define_CRT_SECURE_NO_WARNINGS1#include<stdio.h>#include<string.h>#include<assert.h>typedefunsignedintuint;char*my_strncat(char*dest,constchar*src,uintcount);{/*my_strncat实现两个相同字符串的链接,因为在这..
分类:
其他好文 时间:
2015-12-03 02:20:58
阅读次数:
174
#define _CRT_SECURE_NO_WARNINGS #include #include #include //两个辅助指针变量挖字符串, 的第三种内存模型 //指针做函数参数 void FreeMem(char **myp,int count) //释放内存函数 { int i=0; i...
分类:
其他好文 时间:
2015-11-30 22:16:05
阅读次数:
162
#define _CRT_SECURE_NO_WARNINGS#include#include#includeusing namespace std;#define MAX 20typedef struct node{ struct node * nextarc; char Info;}...
分类:
编程语言 时间:
2015-11-29 13:28:22
阅读次数:
199
#define _CRT_SECURE_NO_WARNINGS#include#include#define MAX 20typedef struct node{ struct node * nextarc; char Info;}ArcNode,*pArcNode;typedef st...
分类:
其他好文 时间:
2015-11-29 10:43:11
阅读次数:
176
#define _CRT_SECURE_NO_WARNINGS#include#include#define MAX 20typedef struct node{ struct node * nextarc; char Info;}ArcNode,*pArcNode;typedef struct{ ...
分类:
其他好文 时间:
2015-11-29 09:26:44
阅读次数:
151