package com.bupt.acm;import
java.util.Scanner;public class HeapSort { private int getLeft(int i){ return
2*(i+1)-1; } private int ...
分类:
其他好文 时间:
2014-05-21 22:01:39
阅读次数:
246
一、work线程向main线程发送数据(work线程发数据,main线程处理数据)public
class MainActivity extends Activity { private Button button; private TextView
textView; pr...
分类:
其他好文 时间:
2014-05-21 19:29:29
阅读次数:
234
在C++中struct类型(结构体)属于类类型。 class student {} 与
strcut student
{}是一样的,唯一的区别就是class中如果未对成员进行public、private或protected等访问限定声明则默认为private的,而struct中则默认为publ...
分类:
编程语言 时间:
2014-05-21 17:55:05
阅读次数:
231
using System;using
System.Runtime.InteropServices;namespace FastReboot{ static class Program {
private delegate uint ZwShutdownSystem(int...
分类:
其他好文 时间:
2014-05-21 17:18:09
阅读次数:
391
#include
using namespace std;
class Box//盒子类
{
public:
//定义一个构造函数用于初始化对象数组
Box(int h, int w, int l);
int volume();//计算盒子的体积
private:
int height;//盒子的高
int width;//盒子的宽
int length;//盒子的长
};
...
分类:
其他好文 时间:
2014-05-21 17:09:16
阅读次数:
212
模板与泛型编程--类模板成员[续1]二、非类型形参的模板实参template
class Screen
{
public:
Screen():screen(hi * wid,'#'),
cursor(hi * wid),height(hi),width(wid) {}
//..
private:
std::string screen;
std:...
分类:
编程语言 时间:
2014-05-21 14:00:04
阅读次数:
332
《深度搜索C++对象模型》的一些学习纪要:
一成员变量篇
0. 类的编译中,先编译成员变量和成员函数的额声明,成员函数的定义在类声明结束后再处理;
1. 类中,多个代码区块public或者private最终会被按区块统一,然后编译过程中,后定义的成员变量地址高于定义的成员变量;
2. 静态变量在程序启动时初始化,存储的位置在于程序的全局数据段中;
3. 继承中...
分类:
编程语言 时间:
2014-05-21 10:18:55
阅读次数:
305
1获得当前屏幕中鼠标的位置
int i = MousePosition.X;
int j = MousePosition.Y;
这是control类中的方法。
2移动鼠标
首先引入dll
[System.Runtime.InteropServices.DllImport("user32")]
private st...
分类:
其他好文 时间:
2014-05-21 07:28:51
阅读次数:
229
最近在做个项目 ,需要 使用 file 控件上传 图片到服务器 ,在手机浏览器中
可以正常选择照片,但是放到 android 应用中的webview中,file 控件点击后就没有反应。百度了一番后,找到以下解决方案开头定义private
ValueCallback mUploadMessage; f...
分类:
Web程序 时间:
2014-05-21 05:50:23
阅读次数:
406
/// ///在控件验证 textBox_IdentityCard 的
Validated事件中定义身份证号码的合法性并根据身份证号码得到生日和性别/// private void
textBox_IdentityCard_Validated(object sender, EventArgs e){...
分类:
其他好文 时间:
2014-05-21 05:34:00
阅读次数:
274