码迷,mamicode.com
首页 >  
搜索关键字:assert    ( 2161个结果
C语言:【动态顺序表】动态顺序表的初始化、打印、尾插PushBack、尾删PopBack
#include<stdio.h> #include<stdlib.h> #include<assert.h> #include<string.h> #include<malloc.h> typedefintDateType; typedefstructSeqList { DateType*arr; size_tcapacility; size_tsize; }SeqList; //创建空间 voidCheckCapa(SeqList..
分类:编程语言   时间:2016-02-20 01:54:44    阅读次数:267
c语言:【顺序表】静态顺序表的头插、头删
#define_CRT_SECURE_NO_WARNINGS1 #include<stdio.h> #include<stdlib.h> #include<assert.h> #include<string.h> #defineMAXSIZE1000 typedefintDateType; typedefstructSeqList { DateTypearr[MAXSIZE]; size_tsize; }SeqList; //打印静态顺序表..
分类:编程语言   时间:2016-02-19 01:47:18    阅读次数:274
顺序表
#define_CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<assert.h>#include<string.h>#defineMAX_SIZE5typedefintDataType;typedefstructSeqList{DataTypearray[MAX_SIZE];size_tsize;}SeqList;打印顺序表voidPrintfSeqList(SeqList*pSeq){assert(pSeq);i..
分类:其他好文   时间:2016-02-18 20:00:52    阅读次数:186
单链表中的许多问题
以下都是对单链表一些简单的应用和对一些简单问题的解决方案。代码如下:#define_CRT_SECURE_NO_WARNINGS//vs2013中需要加的一个宏!#include<iostream>#include<string.h>#include<assert.h>typedefintDateType;typedefstructSListNode{ DateTypedata; stru..
分类:其他好文   时间:2016-02-18 13:57:39    阅读次数:248
浅谈assert()函数的用法
今天在实现strcpy函数时用到了assert函数 1 #include<stdio.h> 2 #include<assert.h> 3 4 char * Strcpy(char *dst,const char *src) 5 { 6 assert(dst != NULL && src != NUL
分类:其他好文   时间:2016-02-16 13:20:22    阅读次数:175
将数字字符串转化为对应数字输出(不考虑溢出)
使用c语言编写一个函数,将一个数字字符串转化为对应数字,不考虑溢出,(比如“12.34”转换为数字:12.34),考虑异常输入思考:异常如输入字幕等等,也有可能输入‘+’,‘-’号等,程序如下:#include<stdio.h> #include<stdlib.h> #include<assert.h> do..
分类:其他好文   时间:2016-02-13 01:41:57    阅读次数:234
静态和动态断言调试
敲代码的时候经常须要调试,以下给出静态和动态断言调试以及经常使用的内置宏。 内置宏: __FILE__//输出文件名称 __LINE__//所在行 __DATE__//日期 __TIME__//时间 __FUNCTION__//函数名 static_assert( constant-expressi
分类:其他好文   时间:2016-02-05 11:47:04    阅读次数:142
NodeJS API简介
简单介绍下NodeJS现有API。 Assert(断言):该模块用于编写程序的单元测试用例。 Buffer(缓冲块) :处理二进制数据。 C/C++ Addons(拓展):Addons插件就是动态连接库。 Child Processes(子进程):提供了类似 popen(3) 的处理三向数据流(st
分类:Windows程序   时间:2016-01-30 18:08:30    阅读次数:188
strcpy strcat strlen实现
char * strcpy (char *strDes, const char *strSrc) { assert((strDes != NULL) && (strSrc != NULL) ); char *address = strDes; while((*strDes++ = *strSrc++
分类:其他好文   时间:2016-01-30 09:31:58    阅读次数:119
Groovy基本类型与运算符
字符串 1.1字符串段落 def s = """Groovy Grails JAVA """ 输出结果: Groovy Grails JAVA 1.2字符串运算符操作: //乘法 assert "hellohello" == "hello" * 2 //减法 def st1 = "helloWorl
分类:其他好文   时间:2016-01-29 20:54:48    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!