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
取得触摸位置最有趣的部分是触摸的位置.接下来我们将使用触摸位置在玩家每次点击的屏幕位置上添加精灵.为了完成这项功能我们需要修改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
首先我们来看下面这段代码: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
静态联合编译与动态联合编译
#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
头文件下添加: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
Program.cs文件中static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { ...
经验证此方法比较保险@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-------Java培训、Android培训、iOS培训、.Net培训、期待与您交流!-------1,程序一般用typedef定义一个block类型 然后调用typedef void(^xxx)();可使用助记符 inlineblock2,Block内部可...
分类:
编程语言 时间:
2015-11-02 11:49:07
阅读次数:
232
首先说明下:第一次运行真是太慢了,处理9600多个员工数据,用了81分钟!!代码也挺简单,主要是得到数据--》对比分析--》插入分析结果到数据库。用的是EF的操作模式。 public void AllocateAllPlans() { var employees...
分类:
其他好文 时间:
2015-11-02 10:25:36
阅读次数:
247
using UnityEngine;using System.Collections;using System.Diagnostics;/////public class FeiYuZhu : MonoBehaviour{ public void OnClick() {#if UNITY...
分类:
编程语言 时间:
2015-11-02 10:19:24
阅读次数:
283