码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
Linux 最简单的驱动程序hello world
1,新建hello.c#include#includeMODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ printk(KERN_ALERT "Hello,init the module!"); return 0;}static v...
分类:系统相关   时间:2015-11-02 13:54:29    阅读次数:165
Touch Handling in Cocos2D 3.x(三)
取得触摸位置最有趣的部分是触摸的位置.接下来我们将使用触摸位置在玩家每次点击的屏幕位置上添加精灵.为了完成这项功能我们需要修改touchBegan的实现,替换旧的代码如下:- (void)touchBegan:(UITouch *)touch withEvent:(UIEvent *)event { // we want to know the location of our touch i...
分类:其他好文   时间:2015-11-02 12:16:34    阅读次数:141
你真的理解Java的按引用传递吗?
首先我们来看下面这段代码:public class Test1 { String a = "123"; public static void change(Test1 test) { test.a="abc"; } public static void main(String[] args) { Test1 test1=new...
分类:编程语言   时间:2015-11-02 12:15:08    阅读次数:194
【C/C++学院】0823-静态联合编译与动态联合编译/父类指针子类指针释放/虚函数/纯虚函数概念以及虚析构函数/抽象类与纯虚函数以及应用/虚函数原理/虚函数分层以及异质链表/类模板的概念以及应用
静态联合编译与动态联合编译 #include #include //散列 void go(int num) { } void go(char *str) { } //class //::在一个类中 class A { public: void go(int num) { } void go(char *str) { } }; void main() { /...
分类:编程语言   时间:2015-11-02 12:15:04    阅读次数:153
CGridCtrl添加右键菜单
头文件下添加:afx_msg void OnMergeCell(); afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/);添加映射:ON_COMMAND(IDM_MergeCell, OnMergeCell)//IDM_Me...
分类:其他好文   时间:2015-11-02 12:11:43    阅读次数:288
winform登录代码
Program.cs文件中static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { ...
分类:Windows程序   时间:2015-11-02 12:01:34    阅读次数:285
webView未加载完,退出方法
经验证此方法比较保险@Override protected void onDestroy() { // TODO Auto-generated method stub if(webView!=null){ webView.destroy(); webView=nul...
分类:Web程序   时间:2015-11-02 11:59:30    阅读次数:214
黑马程序员—oc语言学习心得—block
黑马程序员—oc语言学习心得—block-------Java培训、Android培训、iOS培训、.Net培训、期待与您交流!-------1,程序一般用typedef定义一个block类型 然后调用typedef void(^xxx)();可使用助记符 inlineblock2,Block内部可...
分类:编程语言   时间:2015-11-02 11:49:07    阅读次数:232
EF性能调优
首先说明下:第一次运行真是太慢了,处理9600多个员工数据,用了81分钟!!代码也挺简单,主要是得到数据--》对比分析--》插入分析结果到数据库。用的是EF的操作模式。 public void AllocateAllPlans() { var employees...
分类:其他好文   时间:2015-11-02 10:25:36    阅读次数:247
Unity 打开其他exe文件
using UnityEngine;using System.Collections;using System.Diagnostics;/////public class FeiYuZhu : MonoBehaviour{ public void OnClick() {#if UNITY...
分类:编程语言   时间:2015-11-02 10:19:24    阅读次数:283
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!