码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
写一个system.data.entity的simpledatarepo,实现crudq这些功能,不需要引入entityframework,直接可以使用,用到objectset
note:you can delete reference of entityframework when using this classes.it`s just a simple repohelper.the code below can also include a getpagedlist ...
分类:其他好文   时间:2015-07-07 19:10:00    阅读次数:121
POJ 1002 487-3279
考试月结束,刷水题恢复一下手感,明天开始正式写。题意中文可见注意: 1.输出3-4格式,0补齐 2.不知道Q Z怎么处理 ,视为0了 3.输入时str开大,20的时候WA了 傻叉错: 循环完有还有一个没处理#include #include #include #include using ...
分类:其他好文   时间:2015-07-07 18:40:02    阅读次数:77
Leetcode Implement Queue using Stacks
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:其他好文   时间:2015-07-07 18:38:05    阅读次数:120
web MVC程序开发增删改查参考代码。思路是面向对象思想,以及在HTML代码中嵌入C#代码
第一步:在Model中写好查询,删除,修改,添加方法,用sql_link类using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace MvcApplication2.Models...
分类:Windows程序   时间:2015-07-07 18:32:50    阅读次数:210
C++格式化输出,C++输出格式控制
在输出数据时,为简便起见,往往不指定输出的格式,由系统根据数据的类型采取默认的格式,但有时希望数据按指定的格式输出,如要求以十六进制或八进制形式 输出一个 整数,对输出的小数只保留两位小数等。有两种方法可以达到此目的。 1)使用控制符的方法; 2)使用流对象的有关成员函数。分别叙述如下。 使用控制符的方法 #include #include #include using name...
分类:编程语言   时间:2015-07-07 17:15:34    阅读次数:181
【暑假集训专题#搜索 HDU1241】
【题目链接】click here~~ 【题目大意】'@'代表油田位置,'*'代表地面,八个方向相邻的油田视为一个,求给定地图里油田数目 【解题思路】八个方向搜索即可 代码: #include #include #include #include using namespace std; const int N=1010; int dir4[4][2]= {{1,0},{0,1},{...
分类:其他好文   时间:2015-07-07 17:07:01    阅读次数:111
C#第三次作业:在c#中导入excel,并生成html文件
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; ...
分类:Windows程序   时间:2015-07-07 17:04:25    阅读次数:284
[原]Sql脚本压缩类。
精简的美丽/* * Sql脚本压缩类。 * 去掉sql语句中多余的空格,以减少sql脚本的文本长度 * * Author : goldli@163.com * DateTime : 2015/07/03 */using System.Text.RegularExpressions;namesp...
分类:数据库   时间:2015-07-07 16:43:57    阅读次数:143
Ado.Net学习之【DataSet】和【SqlDataAdapter】结合实现数据的【增】【删】【改】【查】
准备:再数据库中建立一张表:表名:PicInfos关于数据库的链接就不多说了。直接进入今天的主题:利用DataSet和SqlDataAdapter对数据库中的数据进行操作:一、查看数据:public void DoSqlData() { using (SqlCon...
分类:数据库   时间:2015-07-07 16:35:03    阅读次数:145
Implement Queue using Stacks
class Queue {public: // Push element x to the back of queue. void push(int x) { while (!s2.empty()) { int val = s2.top(...
分类:其他好文   时间:2015-07-07 16:29:08    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!