1 #include "windows.h" 2 #include "iostream" 3 4
void main(){ 5 HANDLE hprocessThis=GetCurrentProcess(); 6 7 DWORD
dwPriority=GetPriorityCl...
分类:
其他好文 时间:
2014-05-09 09:14:15
阅读次数:
267
package com.test.thread;public class TestThread {
public static void main(String[] args) { TestThread testThread = new
TestThread(); ...
分类:
编程语言 时间:
2014-05-09 08:20:06
阅读次数:
334
#include //
windows系统要加这个。因为下面2个头文件的一些宏是在这个文件中定义的#include #include
//这两个头文件在OpenGL程序中几乎必加。//>>>>>>>>>>>>>>>>>>>
初始化void myInit(void){ glC...
分类:
其他好文 时间:
2014-05-09 08:17:08
阅读次数:
265
1、public
className(){}。2、名称与类名相同,无返回值,无返回类型,void也不行。(就是上边的形式,除了可以有参数)。3、有0个或多个参数。4、每个类都至少有一个constructor。如果没有显示的写,系统会默认构造一个方法体为空的空参构造函数。如果类有显示声明的构造函数(不...
分类:
编程语言 时间:
2014-05-09 07:57:42
阅读次数:
335
void fun(char *str){ char *a = new
char[strlen(str)+1]; memcpy(a, str, strlen(str)+1); if (...) { return; } else if
(...) {return; } delete a; return;...
分类:
其他好文 时间:
2014-05-09 07:35:24
阅读次数:
257
public class sample{public static void
main(String[]
args){//得到类的简写名称System.out.println(sample.class.getSimpleName());//得到对象的全路径System.out.println(sam...
分类:
其他好文 时间:
2014-05-09 07:17:59
阅读次数:
242
arch/arm/kernel/process.c实现pm_power_off=关机函数参考board-omap3touchbook.c文件中pm_power_off=omap3_touchbook_poweroff;staticvoidomap3_touchbook_poweroff(void)
{
intpwr_off=TB_KILL_POWER_GPIO;
if(gpio_request_one(pwr_off,GPIOF_OUT_INIT_LOW,"DVIreset")<0..
分类:
系统相关 时间:
2014-05-09 07:03:00
阅读次数:
470
import java.lang.reflect.Field;
public class ReflectClass3 {
/**
* @param args
*/
public static void main(String[] args) {
Person p = new Person(1, "ctl", true, 'c', 2.0f, 2.0, 1L, (short) 1...
分类:
编程语言 时间:
2014-05-09 06:18:19
阅读次数:
580
#include
using namespace std;
const int MAXQSIZE = 5;
//队列类
template
struct LinkList
{
T * data;//指向连续的数据存储区域
int front;//头指针 指向第一个元素
int rear;//尾指针 如果队列不为空指向最后元素的下一个位置
};
//构造一个空队列
template
void...
分类:
其他好文 时间:
2014-05-09 06:07:53
阅读次数:
248
原地归并。下面是AC代码: 1 public void merge(int A[], int m,
int B[], int n) { 2 3 int len = A.length; 4 //first copy m elements of A...
分类:
其他好文 时间:
2014-05-09 05:59:54
阅读次数:
297