码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
Java 自动拆箱
public static void main(String[] args) { UnBoxing(); } public static Long getLong(){ Long a=null; return a; } pub...
分类:编程语言   时间:2015-09-18 15:34:10    阅读次数:169
Zigbee系列 学习笔记三(初始化程序解析)
1 int main( void ) 2 { 3 // Turn off interrupts 4 osal_int_disable( INTS_ALL ); 5 6 // Initialization for board related stuff such as LEDs 7 ...
分类:其他好文   时间:2015-09-18 15:31:06    阅读次数:481
Winform TextBox中只能输入数字的几种常用方法(C#)
方法一:private void tBox_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 0x20) e.KeyChar = (char)0; //禁止空格键 if ((e...
分类:Windows程序   时间:2015-09-18 15:27:33    阅读次数:215
iOS-响应上下左右滑动手势
-(void)viewDidLoad{UISwipeGestureRecognizer*recognizer;recognizer = [[UISwipeGestureRecognizeralloc]initWithTarget:selfaction:@selector(handleSwipeFro...
分类:移动开发   时间:2015-09-18 15:25:36    阅读次数:160
c++ 常用数据接口 set
#include #include #include int main(void) { std::set sites; std::string site0 = "sina.com.cn"; std::string site1 = "sina.com.cn"; std::str...
分类:编程语言   时间:2015-09-18 15:17:46    阅读次数:107
ios开发日记10 - 使用CAShapLayer绘制扇形
IOS-使用CAShapLayer绘制扇形为了增加应用体验感,我们动态绘制扇形或者饼状图效果。这里我们使用CAShapeLayer,这样就不必再-(void)draw函数内绘制图形参考代码-(void)reDraw{ CAShapeLayer*chartLine; if(chartLine!=nil...
分类:移动开发   时间:2015-09-18 15:16:06    阅读次数:2230
点击Notification自动消失的方法。
点击Notification自动消失的方法:添加一句.setAutoCancel(true)即可。如下面的代码所示:public class TestAty extends Activity { @Override protected void onCreate(Bundle save...
分类:其他好文   时间:2015-09-18 13:43:41    阅读次数:155
快速获取Windows系统上的国家和地区信息
Windows系统上包含了200多个国家和地区的数据,有时候编程需要这些资料。以下代码可以帮助你快速获取这些信息。将Console语句注释掉,可以更快的完成分析。 1 static void Main(string[] args) { 2 Console.WriteLine("Start!"...
分类:Windows程序   时间:2015-09-18 13:42:56    阅读次数:212
hello world Java小程序入门
/**作者:haha版本:V1.0这个类是用于演示hello world。*/class Demo //这是我的第一个java小程序,//很爽!{/*main函数可以保证该的独立运行。它是程序的入口。它会被JVM所调用。*/public static void main(String[] args)...
分类:编程语言   时间:2015-09-18 13:31:11    阅读次数:185
TextField 协议
官方@protocol UITextFieldDelegate @optional- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField; // return NO to disallow editing.- (void...
分类:其他好文   时间:2015-09-18 13:30:43    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!