码迷,mamicode.com
首页 >  
搜索关键字:delete void    ( 74275个结果
javacc学习总结
在学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
用select单个进程处理并发服务器
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
Android应用程序全屏显示方法
导入两个包: import android.view.Window; import android.view.WindowManager; public class MainActivity extends ActionBarActivity {@Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
分类:移动开发   时间:2014-05-13 23:19:51    阅读次数:509
取消延时函数
- (void) networkReachabilityDidUpdate:(NetworkReachability*)reachability { [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(reachabilityChanged) object:nil]; ...
分类:其他好文   时间:2014-05-13 08:17:19    阅读次数:219
reloadSections
self.isOpen = [NSMutableArray array];     for (int j = 0; j         [self.isOpen addObject:[NSNumber numberWithInt:0]];     } -(void)buttonClick:(UIButton*)button {        NSNumber *num ...
分类:其他好文   时间:2014-05-13 08:12:11    阅读次数:264
ios runtime 动态向类添加方法
1、定义C函数: void dynamicMethodIMP(id self, SEL _cmd) {     NSLog(@"蜗牛也疯狂"); } 2、重写函数+(BOOL)resolveInstanceMethod:(SEL)sel +(BOOL)resolveInstanceMethod:(SEL)sel {     class_addMethod([self ...
分类:移动开发   时间:2014-05-13 08:09:05    阅读次数:412
如何实现自己特定的内存管理,如何正确替换C++中的全局运算符new和delete
如何实现自己特定的内存管理,如何正确替换C++中的全局运算符new和delete...
分类:编程语言   时间:2014-05-13 06:18:23    阅读次数:386
mongodb的写入,删除,更新
1. mongodb创建数据库和集合 mongodb数据库和集合的创建是隐式的。 意思是说不用单独写create database 语句。 直接使用use关键词即可。 在bin/mongo shell下运行:...
分类:数据库   时间:2014-05-13 00:28:12    阅读次数:445
javacc-LOOKAHEAD MiniTutorial 翻译
本文翻译自\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
Qt编程获取鼠标移动事件
想做下面一个效果:想当鼠标移动到按钮上的时候,按钮就变大,图标换个大的,鼠标不在按钮上的时候,按钮就变小,图标也换成小的,感觉比较Cool 实现原理:为每个按钮设置监听属性 void MainHomeForm::init() { //为按钮注册事件 ui->SystemSetButton->installEventFilter(this); ui->ZoneSe...
分类:移动开发   时间:2014-05-12 22:57:49    阅读次数:555
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!