循环双向链表的增删查改等基本操作#include<iostream>
#include<assert.h>
usingnamespacestd;
typedefintDataType;
structListNode
{
DataType_data;
ListNode*_prev;
ListNode*_next;
ListNode(constDataType&x)
:_data(x)
,_prev(NULL)
,_next(NU..
分类:
编程语言 时间:
2016-03-24 16:41:21
阅读次数:
415
string类的默认成员函数、增删查改实现#include<iostream>
#include<assert.h>
usingnamespacestd;
classString
{
public:
String(char*_str="")
//:p_str((char*)malloc(strlen(_str)+1))
//效果一样,但之前没考虑清楚,误打误撞对了,没注意,开辟空间应于_c..
分类:
其他好文 时间:
2016-03-24 16:39:23
阅读次数:
221
#include<iostream>
usingnamespacestd;
#include<assert.h>
classString
{
public:
String(char*str="")
{
_size=strlen(str);
_capacity=_size+1;
_str=newchar[_capacity];
strcpy(_str,str);
}
~String()
{
if(_str)
{
delete[]_str;
_size=0;
_capacity=0;
_s..
分类:
编程语言 时间:
2016-03-23 23:49:42
阅读次数:
412
动态顺序表的初始化及增删查改#pragmaonce
#include<iostream>
#include<string.h>
#include<assert.h>
#include<stdlib.h>
typedefintDataType;
typedefstructSeqList
{
DataType*_array;
size_t_size;
size_t_capacity;
}SeqList;
voidInitSeqLis..
分类:
其他好文 时间:
2016-03-23 06:47:31
阅读次数:
246
C++实现静态顺序表的增删查改顺序表:用一段地址连续的存储单元依s次存储数据元素的线性结构,是线性表的一种。//SeqList.h
#pragmaonce
#include<assert.h>
#include<string.h>
#defineMAX_SIZE5
typedefintDataType;
//定义顺序表结构体
typedefstructSeqLis..
分类:
编程语言 时间:
2016-03-21 16:44:43
阅读次数:
388
package DAO;import java.sql.ResultSet;import java.util.ArrayList;import java.util.List; import tools.DBHelper;import entity.User; public class userDAO
分类:
其他好文 时间:
2016-03-21 09:23:59
阅读次数:
184
做一个tablecontrol用来录入一些简单的数据,可以实现简单的增删查改。 先看效果图: 程序主干 在TOP中定义变量和选择屏幕。 用到的table是一个自建表,数据格式与tablecontrol上表现出的基本一致。 程序取数部分和显示屏幕之前的部分。 9000屏幕。tablecontrol的P
分类:
其他好文 时间:
2016-03-21 09:20:19
阅读次数:
204
如果是做 web 的话,相信都非要对 Dom 进行增删查改,那这相信大家都或多或少接触到过 jQuery 类库,其最大特色就是强大的选择器,让开发者脱离原生 JS 一大堆 getElementById、getElementsByName...官方提供超长方法 api 。 jQuery 整体源码,本人
分类:
Web程序 时间:
2016-03-20 00:34:43
阅读次数:
139
1. 2.Note It's a common practice to implement the repository pattern in order to create an abstraction layer between your controller and the data acce
分类:
其他好文 时间:
2016-03-18 00:25:53
阅读次数:
284
In the previous tutorial you created an MVC application that stores and displays data using the Entity Framework and SQL Server LocalDB. In this tutor
分类:
其他好文 时间:
2016-03-18 00:11:55
阅读次数:
317