码迷,mamicode.com
首页 >  
搜索关键字:public    ( 82854个结果
leetcode 3 Longest Substring Without Repeating Characters(滑动窗口)
用滑动窗口的思想来做。用一个unordered_map来查询之前的char有没有在现在的窗口中。class Solution {public: int lengthOfLongestSubstring(string s) { unordered_mapmp; int...
分类:其他好文   时间:2015-10-21 14:07:11    阅读次数:152
WPF中使用DirectShowLib枚举摄像头设备和分辨率
提供window平台下基于Net技术和Qt技术的多点触摸设备应用开发,画板开发,摄像头/展台设备应用开发本质还是对DX接口的运用,直接代码好理解1. 定义设备接口public interface IDevice{ string DeviceName{get;set;} //设备名称 s...
分类:Windows程序   时间:2015-10-21 13:59:51    阅读次数:1679
java.lang.VerifyError: Inconsistent stackmap frames at branch target 81
java项目中有如下代码: @RequestMapping(value = "/getMxList") @ResponseBody public Map getMxList(HttpServletRequest req, Model model) throws ManagerEx...
分类:编程语言   时间:2015-10-21 13:57:34    阅读次数:902
TweenAnimation补间动画
一.在Java代码中编译动画①java程序public class MainActivity extends Activity { private ImageView iv; @Override protected void onCreate(Bundle savedInstanc...
分类:其他好文   时间:2015-10-21 13:57:21    阅读次数:293
安卓手机触摸画线
1. ?定义 MyPaintView 组件 public?class?MyPaintView?extends?View?{ ????private?List<Point>?allPoint?=?new?ArrayList<Point>(); ????public?MyPaintView(Context?context,?Attribute...
分类:移动开发   时间:2015-10-21 12:45:46    阅读次数:253
android加密工具类
import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;/** * 加密工具类 * Created by Administrator on 2015/10/21 0021. */public c...
分类:移动开发   时间:2015-10-21 12:27:10    阅读次数:177
关于SqlCommand对象的2个方法:ExecuteNonQuery 方法和ExecuteScalar方法
1.SqlCommand.ExecuteNonQuery 方法对连接执行 Transact-SQL 语句并返回受影响的行数。语法:public override int ExecuteNonQuery()返回值:类型:System.Int32受影响的行数注意:①对于 UPDATE、INSERT 和 ...
分类:数据库   时间:2015-10-21 12:26:09    阅读次数:204
实现一个对象验证库系列 -- 2) 验证器实现 (请大神批评)
前情回顾:上一篇1) 接口介绍以及总体思路概述简单描述了下库的代码结构本文将说说验证器实现,欢迎大神指导更快更好的方案2) 验证器实现我们首先从用户调用的验证器开始实现,所以我们应该首先这样做public class Validator : IValidator{ public IValidateR...
分类:其他好文   时间:2015-10-21 12:24:19    阅读次数:168
NPOI导出模板样式
/// /// 导出多种车辆统计表格 /// /// [ActionName("MoreAllImport")] public void MoreAllImport() { List l...
分类:其他好文   时间:2015-10-21 12:12:27    阅读次数:176
WebSecurity角色认证
public class MyAuthorizeAttribute : System.Web.Mvc.AuthorizeAttribute { public new string[] Roles { get; set; } protected override bo...
分类:Web程序   时间:2015-10-21 10:44:02    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!