public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); Button btn = new Button(this);
btn.setText("测试ndk"); btn.setOnCl...
分类:
移动开发 时间:
2014-05-14 02:33:36
阅读次数:
488
1 #include "windows.h" 2 #include "iostream" 3 4
void main(){ 5 DWORD dwIdThis=GetCurrentProcessId(); 6 7 DWORD
dwVerReq=GetProcessVersion(...
分类:
其他好文 时间:
2014-05-14 01:38:18
阅读次数:
417
在学javacc的时候,发现一个问题,见下:
Example.jj文件
PARSER_BEGIN(Example)
public class Example {
public static void main(String args[]) throws ParseException {
Example parser = new Example(System.in);
...
分类:
编程语言 时间:
2014-05-14 01:25:59
阅读次数:
367
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
void FD_CLR(int fd, fd_set *set);
int FD_ISSET(int fd, fd_set *set);
void FD_SET(int fd, fd...
分类:
其他好文 时间:
2014-05-14 00:03:02
阅读次数:
440
大致题意:给出一个整数n,(1 int n,flat;unsigned long long
b;void DFS(unsigned long long a,int step){ if(flat||step==19) { return ; }
if(a%n==0)...
分类:
其他好文 时间:
2014-05-13 19:59:23
阅读次数:
276
代码片段(假设只有3个key=value):public static void
main(String[] args) throws IOException { BufferedReader br = new BufferedReader(
new In...
分类:
其他好文 时间:
2014-05-13 19:48:10
阅读次数:
485
public class BubbleSort{ public static void
main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6};
System.out.println("before sorting ,t.....
分类:
编程语言 时间:
2014-05-13 19:45:04
阅读次数:
366
- (void) networkReachabilityDidUpdate:(NetworkReachability*)reachability
{
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(reachabilityChanged) object:nil];
...
分类:
其他好文 时间:
2014-05-13 08:17:19
阅读次数:
219
本文翻译自\javacc-5.0\doc\lookahead.html章节。
上文:http://blog.csdn.net/chaofanwei/article/details/25541065
1、LOOKAHEAD是什么
lookahead就是当语法分析器从词法分析器里取token时,需要取多少个才能让分析器正确的走下去。
例一
void Input() :...
分类:
编程语言 时间:
2014-05-12 23:19:21
阅读次数:
679
想做下面一个效果:想当鼠标移动到按钮上的时候,按钮就变大,图标换个大的,鼠标不在按钮上的时候,按钮就变小,图标也换成小的,感觉比较Cool
实现原理:为每个按钮设置监听属性
void MainHomeForm::init()
{
//为按钮注册事件
ui->SystemSetButton->installEventFilter(this);
ui->ZoneSe...
分类:
移动开发 时间:
2014-05-12 22:57:49
阅读次数:
555