码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
局部变量使用细节
public class TestThis { private String name; void eat(String name){ //String food;//局部变量在使用时必须初始化,否则会报错 error String food = "apple"; //right Syste...
分类:其他好文   时间:2014-07-16 17:01:11    阅读次数:169
c# 关键字delegate、event(委托与事件)[MSDN原文摘录][2]
//Demo1:Declaring an event in an interface and implementing it in //a class.// event_keyword.csusing System;public delegate void MyDelegate(); // de.....
分类:其他好文   时间:2014-07-16 15:41:01    阅读次数:246
wp8 入门到精通 高仿微信发信息 键盘不消失
public MainPage() { InitializeComponent(); this.textBox.KeyUp += new KeyEventHandler(textBox_KeyUp); } void text...
分类:微信   时间:2014-07-16 15:34:13    阅读次数:467
0715-----C++Primer听课笔记-----------函数指针 、单例模式
1.函数指针1.1 普通成员函数指针包含类名信息以及const属性,指向具体函数是必须加上&符号。#include using namespace std;class Test{ public: void setValue(const string &s, int a){ ...
分类:编程语言   时间:2014-07-16 15:33:15    阅读次数:287
手势(1)
//当我们的事件开始的时候调, 对于touch来说, 实际上当手指头放到屏幕上的时候,这个方法会被调用- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"%s",__func__);}//当我们手指点击屏...
分类:其他好文   时间:2014-07-16 15:29:56    阅读次数:190
全排列,组合问题
(1)全排列问题 1 //全排列的两种方法 2 #include 3 using namespace std; 4 5 //方法一,采用swap方法 6 void quanpailie(char * A,int first,int n) 7 { 8 if(A==NULL) 9 {...
分类:其他好文   时间:2014-07-16 12:15:27    阅读次数:224
递归实现快速排序
#include int a[101], n;void quicksort(int left, int right) { int i,j,t,temp; if (left>right) return; temp = a[left]; i=left; j=r...
分类:其他好文   时间:2014-07-16 12:13:23    阅读次数:196
opencv2函数学习之flip:实现图像翻转
在opencv2中,flip函数用来进行图片的翻转,包括水平翻转,垂直翻转,以及水平垂直翻转。void flip(const Mat& src, Mat& dst, int flipCode);参数:src:原图像。dst:翻转后的图像flipCode:翻转代码,int型。0代表垂直翻转,1代表水平...
分类:其他好文   时间:2014-07-16 12:07:03    阅读次数:211
自定义ComboBox,简简单单实现
private void Button_Click(object sender, RoutedEventArgs e) { Popup1.PlacementTarget = TesTextBox; Popup1.Placeme...
分类:其他好文   时间:2014-07-16 12:06:26    阅读次数:195
向下转型 常见错误
public class Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub /* * A 父类 * B 子类 * */ ...
分类:其他好文   时间:2014-07-16 11:59:48    阅读次数:787
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!