码迷,mamicode.com
首页 >  
搜索关键字:assert    ( 2161个结果
顺序表的实现---静态
"Seq_S.h"#ifndef__SEQ_LIST_H__#define__SEQ_LIST_H__#defineMAX100#include<stdio.h>#include<assert.h>#include<string.h>typedefintDataType;typedefstructSeqList{ DataTypearr[MAX]; intsize;}SeqList,*pSeqList;voidInitSeqList(pSeqListpSeq);//初始..
分类:其他好文   时间:2016-02-27 01:08:14    阅读次数:251
链表的实现
“link.h”#ifndef__LINK_LIST_H__#define__LINK_LIST_H__#include<stdio.h>#include<assert.h>#include<malloc.h>#include<stdlib.h>typedefintDataType;typedefstructLinkNode{ DataTypedata; structLinkNode*next;}LinkNode,*pLinkNode,*pList;void..
分类:其他好文   时间:2016-02-27 01:06:20    阅读次数:228
顺序表的实现---动态
“Seq_D.h”#ifndef__SEQ_LIST_H__#define__SEQ_LIST_H__#defineINIT_SIZE2#defineINC2#include<stdio.h>#include<assert.h>#include<string.h>#include<malloc.h>#include<stdlib.h>typedefintDataType;typedefstructSeqList{ DataType*data;//..
分类:其他好文   时间:2016-02-27 01:05:51    阅读次数:223
字符串复制strncpy
1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4 5 using namespace std; 6 7 char* mystrncpy(char* dest, const char* src, int n) 8 {
分类:其他好文   时间:2016-02-23 11:23:28    阅读次数:157
字符串比较
1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4 5 using namespace std; 6 7 int mystrcmp(const char* dest, const char* src) 8 { 9 a
分类:其他好文   时间:2016-02-23 11:10:38    阅读次数:127
字符串链接strcat
1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4 #include "string" 5 6 using namespace std; 7 8 char* mystrcat(char* dest, const ch
分类:其他好文   时间:2016-02-23 11:04:40    阅读次数:128
字符串复制
1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4 5 using namespace std; 6 7 char* mystrcpy(char* dest, const char* src); // 1 const
分类:其他好文   时间:2016-02-23 11:04:40    阅读次数:115
[转载] C++位运算:将一个4字节整数的二进制表示中的001替换为011
#include <iostream> #include <assert.h> /** * Key: * * get someone bit: num & (mode1bit<<N) * * check a few bits: num & (mode3bit<<shift) == What */ i
分类:编程语言   时间:2016-02-22 23:28:51    阅读次数:409
LAMP架构搭建与优化(2.8-2.9)
php.ini配置文件详解/usr/local/php/bin/php-i|head可以查看到调用的php.ini配置文件在哪里,它是以分号为注释符号,常用的配置有vim/usr/local/php/bin/php.ini1.disable_functions=eval,assert,popen,passthru,escapshllarg,escapeshellcmd,passthru,exec,systern,chroot,sca..
分类:其他好文   时间:2016-02-22 06:48:43    阅读次数:228
动态顺序表
//SeqList.h #ifndef__SEQLIST_H__ #define__SEQLIST_H__ #include<string.h> #include<assert.h> #include<stdlib.h> typedefintDataType; typedefstructSeqList { DataType*array; size_tsize; DataTypecapacity;//容量 }SeqList,*pSeqList; voidIni..
分类:其他好文   时间:2016-02-21 06:45:59    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!