码迷,mamicode.com
首页 >  
搜索关键字:public void __cdecl    ( 122950个结果
Java Comparator
1 Arrays.sort(points, new comparator());2 3 public static class comparator implements Comparator {4 public int compare(Point p1, Point p2) {5 ...
分类:编程语言   时间:2014-05-05 23:32:10    阅读次数:444
定时器(了解)
// Test.cpp : 定义控制台应用程序的入口点。//#include "../I_Timer.H"#include void onTimer1(){ std::cout createTimer();#if 1 auto myTimer1 = /*Timer::createTime...
分类:其他好文   时间:2014-05-05 23:28:48    阅读次数:341
OC方法和文件编译
OC方法和文件编译一、OC方法(一)对象方法(1)对象方法以-开头如-(void)xx;(2)对象方法只能又对象来调用(3)对象方法中可以访问当前对象的成员变量(4)调用格式[对象名对象方法名];(5)设计一个学生类和狗类,练习对象方法的使用。学生类的声明:学生类的实现:狗类的声明:狗类的实现:主程...
分类:其他好文   时间:2014-05-05 23:09:24    阅读次数:344
Rhythmk 学习 Hibernate 05 - Hibernate 表间关系 [One To One]
1、One To One 单相背景: 古代一个老婆 只能关联一个老公husband.javapackage com.rhythmk.model;public class husband { public Integer getHusbandId() { return husbandId; }...
分类:系统相关   时间:2014-05-05 23:06:28    阅读次数:516
Leetcode: Maximum Depth of Binary Tree
1 /** 2 * Definition for binary tree 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * TreeNo...
分类:其他好文   时间:2014-05-05 22:44:13    阅读次数:328
Leetcode: Same Tree
1 /** 2 * Definition for binary tree 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * TreeNo...
分类:其他好文   时间:2014-05-05 22:43:14    阅读次数:313
黑马程序员-c语言关于二进制的输出
c语言中的二进制输出是没有占位符的,不像八进制:%o; 和十六进制:x%;c中二进制的输出 1 //右移31位,从最高为开始和1做&运算,得到每一位的二进制数值 2 void printbinry(int num) 3 { 4 int count = (sizeof(num)=0) { 6 ...
分类:编程语言   时间:2014-05-05 22:37:02    阅读次数:431
孙子进程和共享内存的应用
fork两次然后在孙子进程中调用某函数避免孙子进程被kill掉产生僵尸进程 /* 这样做儿子进程很快就会退出,所以孙子进程不太可能产生僵尸进程,即使产生时间也极其短暂 */#include #include #include void fork_grandson_run(void func(void...
分类:其他好文   时间:2014-05-05 22:13:00    阅读次数:445
显示游戏FPS帧率的几种计算方式
FPSDisplay.csusing UnityEngine;using System.Collections; public class FPSDisplay : MonoBehaviour{ float deltaTime = 0.0f; void Update() { ...
分类:其他好文   时间:2014-05-05 22:05:23    阅读次数:522
特殊数
#include #include #include using namespace std;int n,leap;int vis[12];void dfs(int index,int num){ if(leap) return ; if(index>n) { ...
分类:其他好文   时间:2014-05-05 22:01:05    阅读次数:593
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!