码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
C# TextBox 只能输入数字
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { TextBox txt = sender as TextBox; //屏蔽非法按键,只能输入小数 ...
分类:Windows程序   时间:2015-09-22 16:33:08    阅读次数:216
c++ const 成员函数
第一个事实:某类中可以这么声明定义两个函数,可以重载(overload)void pa(){ cout<<"a"<<endl;}void pa() const{ cout<<"b"<<endl;}上面的写法是正确的。基于这个事实,我思考了一下它的机制。试验得出,第二个事实:普通函数(不是...
分类:编程语言   时间:2015-09-22 16:31:11    阅读次数:137
随机验证码生成
1 public static void CreateValidateGraphic(string validateCode, HttpContext httpContext) 2 { 3 Bitmap img = new Bitmap((int)Math.Ceiling(...
分类:其他好文   时间:2015-09-22 16:23:38    阅读次数:217
使用HtmlUnit登录百度
环境java 1.7HtmlUnit 2.18eclipse 4.4.2maven 配置: net.sourceforge.htmlunit htmlunit 2.18 java代码public void loginBa...
分类:Web程序   时间:2015-09-22 16:00:05    阅读次数:198
改变TableView中的分割线位置
加上以下代码,可以让系统的分割线位置置于起始位置#pragma mark --- 设置分割线位置为起始位置-(void)viewDidLayoutSubviews{ if ([self.tableView respondsToSelector:@selector(setSeparatorInset:...
分类:其他好文   时间:2015-09-22 14:32:29    阅读次数:112
Java静态方法不能被覆盖
// 静态方法不能被覆盖 /*class Super{ static String name(){ return "mother"; } } class Test02{ public static void main(String[] args){ Super s3 = new Super()...
分类:编程语言   时间:2015-09-22 14:30:55    阅读次数:121
Android导航栏菜单强制转换
private void getOverflowMenu() { ViewConfiguration viewConfig = ViewConfiguration.get(this); try { Field overflowMenuField = ViewConfiguration.cl...
分类:移动开发   时间:2015-09-22 14:19:16    阅读次数:163
函数及其调用
class Program { public void dayin() { Console.WriteLine("hollo world"); } /// /// 累加求和 /// ...
分类:其他好文   时间:2015-09-22 12:57:11    阅读次数:213
java读写excel之POI篇—003
使用WorkbookFactory打开Workbook @Test ????public?void?openWorkbookByWorkbookFactory(){ ????????FileInputStream?fileInputStream?=?null; ????????Workbook?workbook?=?null;...
分类:编程语言   时间:2015-09-22 11:37:16    阅读次数:187
Formatting is Specified but argument is not IFormattable
private void DeviceSetText(TextBox textBox, string text) { //处理text的显示值 if (text != "0") //小数位后保留2位 { ...
分类:其他好文   时间:2015-09-22 10:20:43    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!