课程设计要求进行junit测试,我是在已经做好的ssh项目上做的测试,测试类代码如下package com.zhang.web.services;import static org.junit.Assert.*;import org.junit.After;import org.junit.Befo...
分类:
移动开发 时间:
2015-12-07 20:30:49
阅读次数:
167
传递要查找的数组,数组大小以及要查找的值,返回该值在数组中的索引int find1(int *a, int n,int key){ assert(a); int *end = a + n, *beg = a; for (; beg #include#include#includ...
分类:
其他好文 时间:
2015-12-07 14:03:46
阅读次数:
163
静态库连接编译问题:assert 原来在c编译器下没定义ceill 没连接没加 -lmhttp://blog.chinaunix.net/uid-20681545-id-3786786.html -c 和-lz 不能一起使用 -c 无连接http://blog.csdn.net/aiwoziji13...
分类:
其他好文 时间:
2015-12-06 00:08:34
阅读次数:
200
void SkinRGB(IplImage* rgb, IplImage* _dst){ assert(rgb->nChannels == 3 && _dst->nChannels == 3); static const int R = 2; static const int G ...
分类:
其他好文 时间:
2015-12-04 20:46:00
阅读次数:
204
1.验证页面上的车贷计算器算的结果是否与需求中给的公式结果一致。页面图片:代码如下(简单实现,需要优化):package com.test;import java.math.BigDecimal;import org.junit.Assert;import org.openqa.selenium.B...
分类:
编程语言 时间:
2015-12-04 18:02:35
阅读次数:
239
#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
(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