在windows下一般都是用的sourceinsight,到也好用,但偶而也玩玩vim。source insight执行外部命令,可以在设置中定义一个自定义键,gvim 当然也很好搞哪,冒号加!就可以了,也可以在配置vimrc中加一个快捷键,比如我加了 F11。但直接vim启动程会先弹出一个cmd窗口,里面显示这个程序的返回值什么的,有没有办法去掉了,在我的反复尝试下,发现是可以的,那就是不要直接调这个程序,而是用 start + 程序名 的方式调用。 比如我这里配置好后,F11打开explorer 并且选中当前buff编辑的文件,再也不会弹出黑色框了。 !start explorer /s…
2015-01-01 10:27 · 评论(0)
int ledPin =8; void setup() { pinMode( ledPin,OUTPUT); } void loop() { digitalWrite(ledPin, HIGH); delay(2000); digitalWrite(ledPin,LOW); delay(1000); }
2013-10-18 21:51 · 评论(0)
http://developer.apple.com/library/mac/documentation/MusicAudio/Conceptual/AudioQueueProgrammingGuide/AudioQueueProgrammingGuide.pdf
2013-02-01 16:00 · 评论(0)
/* File: AQPlayer.h Abstract: Helper class for playing audio files via the AudioQueue Version: 2.4 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribut…
2013-01-31 14:26 · 评论(0)
/* File: AQRecorder.h Abstract: Helper class for recording audio files via the AudioQueue Version: 2.4 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistr…
2013-01-31 14:24 · 评论(0)
《C专家编程》: 20121129:45 20121201:85
2012-11-29 19:06 · 评论(0)
状态不好,字数不够
2012-11-02 13:19 · 心情 · 评论(0)
如果你问一个IT人士“C++如何实现类似Java的反射?”,结果会怎样呢?~!@#¥%……&*,估计大部分人都会要稍微思考了一下,或者直接说“C++根本就不支持反射的呀!”。 是的,C++语言本身是不支持反射的,但实际应用中总是会有将对象序列化的需求,总不可能C++不支持,我们就不用C++了,既然发明C++的大师们没有考虑这个,那我们只有自己动手了,说过“自己动手,丰衣足食”! 天生限制 C++语言本身不支持反射机制,但C++对象总是要序列化的,序列化就是存储到磁盘上,将对象变成一定格式的二进制编码,然后要用的时候再将保存在磁盘上的二进制编码转化成一个内存中的对象,这个过程中总是需要有一个指…
2011-03-14 21:25 · 评论(0)
复制构造函数在书上列举了五种应用场景,但在G++上发现,在从函数返回时,并不调用复制构造函数
2010-01-16 10:36 · 评论(0)