码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
ASP.NET - 一般处理程序获取session值
1.要在一般处理程序中获取其他页面的session值,需要引用名空间:using System.Web.SessionState;2.然后继承一个接口:IRequiresSessionState,如图:public class Handler : IHttpHandler, IRequiresSes...
分类:Web程序   时间:2015-09-02 13:16:52    阅读次数:149
ASP.NET - 生成验证码
最终效果:使用文件:VerifyCode.aspx前端 VerifyCode.aspx:再 Page_Load 中的代码,是怎么去生成,以及创建Session。int length = 6; 改变生成的验证码的字符个数。int fontSize = 50; 改变生成字体的大小,单位是像素。using...
分类:Web程序   时间:2015-09-02 13:14:57    阅读次数:199
[LeetCode] Maximal Rectangle
This link shares a nice solution with explanation using DP. You will be clear of the algorithm after running it on its suggested example:matrix = [[0,...
分类:其他好文   时间:2015-09-02 13:14:48    阅读次数:157
Dapper学习笔记(4)-事务
Dapper中对事务的处理也非常简单,如下代码所示: 1 private void DapperTransaction() 2 { 3 using (IDbConnection con = OpenConnection()) 4 ...
分类:移动开发   时间:2015-09-02 13:10:53    阅读次数:826
【原创】.NET Web API之filter ActionFilterAttribute 过滤器使用
1、在filter类里面引用,与MVC里面的不同using System.Web.Http.Controllers;using System.Web.Http.Filters;2、filter类里面实现的代码,返回json public class FilterAttribute1 : Act...
分类:Windows程序   时间:2015-09-02 10:38:39    阅读次数:646
循环节 HDU1005
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int arr[10000]; 8 9 int main()10 {11 int a,b,n,s,e;12 while(scanf("%d%d%d...
分类:其他好文   时间:2015-09-02 10:38:13    阅读次数:123
班级通讯录管理系统
#include #include #include using namespace std; struct student{ char s_no[20]; char s_name[20]; char s_sex[10]; char s_year[10]; char s...
分类:其他好文   时间:2015-09-02 07:06:41    阅读次数:270
C#------IO练习
class Program { //练习一:将1.txt的文件字节与2.txt文件文件字节合并为一个文件3.txt。 static void Main(string[] args) { using( Stream fs1 = Fi...
分类:Windows程序   时间:2015-09-02 01:45:54    阅读次数:237
C++ 模板类demo
#include using namespace std;template class MyVector{ friend ostream & operator(ostream &out, const MyVector &obj);public: MyVector(int size = ...
分类:编程语言   时间:2015-09-02 00:40:18    阅读次数:210
UVa 10118 记忆化搜索 Free Candies
假设在当前状态我们第i堆糖果分别取了cnt[i]个,那么篮子里以及口袋里糖果的个数都是可以确定下来的。所以就可以使用记忆化搜索。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 45; ...
分类:其他好文   时间:2015-09-02 00:17:51    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!