- 博客(93)
- 资源 (6)
- 收藏
- 关注
原创 又一个wordpress网站
不过这次是我自己的,走过路过的帮点击下啊。除了域名花了29,其余都免费的,正在审请备案。观迎大家咨询。http://wanqiang.wang/我的blog生涯,最开始是在baidu的hi空间,上面有我整个学生时代的记忆,工作后转战别的地方,一段时间没有注意,整个hi空间都关掉了,文章都被移到了百度云里面。
2015-05-23 12:33:46 1508 2
原创 读书笔记——IOS之Web开发
Web开发读书笔记:http://www.mincoder.com/article/2576.shtml主要的请求方法Get请求:数据以明文在URL中,数据量小Post请求:数据大小没有限制HEAD请求:请求头信息程序的实现需要借助几个对象:NSURLRequest:建立了一个请求,可以指定缓存策略、超时时间。和NSURLRequest对应的还有一个NSMutableURLRequest,
2015-03-29 05:31:53 989
原创 奇技之VIM:将当前编辑的文件完全路径拷贝到系统剪贴板
在Win下,代码调试还是VS最方便,当用VS打开exe时,vs需要快速定位文件,在Source Insght中,写了一个宏,用一个快捷键实现的。但在VIm中怎么做呢?找了一遍,没有发现现成的(可能自己水平太浅,没找到),那就用脚本自己写一个吧。在_vimrc中加入下面的内容。function GetCurFilePath() let cur_dir=getcwd()
2015-01-09 07:53:52 3626 2
原创 奇技之VIM:win下的gvim启动外部程序如何不弹出黑屏
在windows下一般都是用的sourceinsight,到也好用,但偶而也玩玩vim。source insight执行外部命令,可以在设置中定义一个自定义键,gvim 当然也很好搞哪,冒号加!就可以了,也可以在配置vimrc中加一个快捷键,比如我加了 F11。但直接vim启动程会先弹出一个cmd窗口,里面显示这个程序的返回值什么的,有没有办法去掉了,在我的反复尝试下,发现是可以的,那就是不要直接
2015-01-01 10:27:49 1887 1
奇技之VIM:win下的gvim启动外部程序如何不弹出黑屏
在windows下一般都是用的sourceinsight,到也好用,但偶而也玩玩vim。source insight执行外部命令,可以在设置中定义一个自定义键,gvim 当然也很好搞哪,冒号加!就可以了,也可以在配置vimrc中加一个快捷键,比如我加了 F11。但直接vim启动程会先弹出一个cmd窗口,里面显示这个程序的返回值什么的,有没有办法去掉了,在我的反复尝试下,发现是可以的,那就是不要直接...
2015-01-01 10:27:00 278
原创 arduino学习之:LED点灯
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:53 5800
arduino学习之:LED点灯
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:00 661
原创 audioqueue编程指南
http://developer.apple.com/library/mac/documentation/MusicAudio/Conceptual/AudioQueueProgrammingGuide/AudioQueueProgrammingGuide.pdf
2013-02-01 16:00:10 102
转载 File: AQPlayer.h
/* File: AQPlayer.hAbstract: Helper class for playing audio files via the AudioQueue Version: 2.4Disclaimer: IMPORTANT: This Apple software is supplied to you by AppleInc. ("Apple")
2013-01-31 14:26:40 771
File: AQPlayer.h
/* File: AQPlayer.hAbstract: Helper class for playing audio files via the AudioQueue Version: 2.4Disclaimer: IMPORTANT: This Apple software is supplied to you by AppleInc. ("Apple")...
2013-01-31 14:26:00 110
转载 File: AQRecorder.h
/* File: AQRecorder.hAbstract: Helper class for recording audio files via the AudioQueue Version: 2.4Disclaimer: IMPORTANT: This Apple software is supplied to you by AppleInc. ("App
2013-01-31 14:24:10 1023
File: AQRecorder.h
/* File: AQRecorder.hAbstract: Helper class for recording audio files via the AudioQueue Version: 2.4Disclaimer: IMPORTANT: This Apple software is supplied to you by AppleInc. ("App...
2013-01-31 14:24:00 199
C++ 反射实现
如果你问一个IT人士“C++如何实现类似Java的反射?”,结果会怎样呢?~!@#¥%……&*,估计大部分人都会要稍微思考了一下,或者直接说“C++根本就不支持反射的呀!”。是的,C++语言本身是不支持反射的,但实际应用中总是会有将对象序列化的需求,总不可能C++不支持,我们就不用C++了,既然发明C++的大师们没有考虑这个,那我们只有自己动手了,说过“自己动手,丰衣足食”!天...
2011-03-14 21:25:00 114
原创 c++ primer 习题 15.35 集成了哪一章的完整的可运行代码
/*********************************************************************created: 2010/01/23*created: 23:1:2010 9:35*filename: d:/svn/cpp_primer_charpter_15/cpp_test/Basket.h*author: WWQ *
2010-01-23 10:17:00 1053
c++ primer 习题 15.35 集成了哪一章的完整的可运行代码
/*********************************************************************created: 2010/01/23*created: 23:1:2010 9:35*filename: d:/svn/cpp_primer_charpter_15/cpp_test/Basket.h*author: WWQ *...
2010-01-23 10:17:00 133
原创 LCD驱动芯片1335控制器C51源程
整理硬盘资料,看见的一段代码。贴上来备份//LCD驱动芯片1335控制器C51源程///*include files */#include "w78e58.h"//#include "zimo.h" //这是自己做的一个汉字库,#include "stdio.h"#include "stdlib.h"#include "math.h"#include "absa
2010-01-22 16:53:00 757
LCD驱动芯片1335控制器C51源程
整理硬盘资料,看见的一段代码。贴上来备份//LCD驱动芯片1335控制器C51源程///*include files */#include "w78e58.h"//#include "zimo.h" //这是自己做的一个汉字库,#include "stdio.h"#include "stdlib.h"#include "math.h"#include "absa.
2010-01-22 16:53:00 323
原创 WORD中去掉编号,但保留下编号的数字的宏
Sub 去编号() 去编号 Macro 宏在 2010-1-18 由 wwq 创建Dim kgslist As ListFor Each kgslist In ActiveDocument.Listskgslist.ConvertNumbersToTextNextEnd Sub
2010-01-18 19:55:00 5046
WORD中去掉编号,但保留下编号的数字的宏
Sub 去编号()'' 去编号 Macro' 宏在 2010-1-18 由 wwq 创建'Dim kgslist As ListFor Each kgslist In ActiveDocument.Listskgslist.ConvertNumbersToTextNextEnd Sub
2010-01-18 19:55:00 874
原创 c++ primer 习题 14.37
#include #include #include #include #include using namespace std;int main(){ const int ARR_SIZE=7; int ia[ARR_SIZE]={1,1025,2,1026,1030,3,1048}; vector ivec(ia,ia+ARR_SIZE); stri
2010-01-18 13:04:00 667
c++ primer 习题 14.37
#include <iostream>#include <functional>#include <algorithm>#include <string>#include <vector>using namespace std;int main(){ const int ARR_SIZE=7; int ...
2010-01-18 13:04:00 120
原创 C++ primer 构造、析构、赋值测试
复制构造函数在书上列举了五种应用场景,但在G++上发现,在从函数返回时,并不调用复制构造函数 /*** Copyright (C) QPSOFT.COM All rights reserved.*/#include#include#includeusing namespace std;class Employee{public: Employe
2010-01-16 10:36:00 532
C++ primer 构造、析构、赋值测试
复制构造函数在书上列举了五种应用场景,但在G++上发现,在从函数返回时,并不调用复制构造函数/*** Copyright (C) QPSOFT.COM All rights reserved.*/#include<string>#include<vector>#include<iostream>using namespace st...
2010-01-16 10:36:00 83
原创 字符串查找第一个不重复的字符的实现
//找出一个字符串中从头到尾不重复的第一个字符,如“aab”,是‘b’#include #include #include #define _DEBUGint main(){ using namespace std; string str; cout<<"请输入一个字符串:"<<endl; cin>>str;#ifdef _DEBUG for (s
2010-01-14 16:59:00 1292
字符串查找第一个不重复的字符的实现
//找出一个字符串中从头到尾不重复的第一个字符,如“aab”,是‘b’#include <map>#include <iostream>#include <string>#define _DEBUGint main(){ using namespace std; string str; cout<<"请输入一个字...
2010-01-14 16:59:00 143
原创 C++ primer 习题练习:12.13
#include #include using namespace std;class Screen {public: typedef string::size_type index; char get() const{return contents[cursor];} inline char get(index ht,index wd) const; index
2010-01-13 21:41:00 739
C++ primer 习题练习:12.13
#include <iostream>#include <string>using namespace std;class Screen {public: typedef string::size_type index; char get() const{return contents[cursor];} inline char get(inde...
2010-01-13 21:41:00 105
原创 cpp primer 验证 p325页 文本查讯程序
头文件:TextQuery.h #pragma once#include #include #include #include #include using namespace std;//文本查讯类class TextQuery{public: typedef std::vector::size_type line_no; //接口 voi
2010-01-13 12:17:00 931 2
cpp primer 验证 p325页 文本查讯程序
头文件:TextQuery.h#pragma once#include <string>#include <vector>#include <map>#include <set>#include <fstream>using namespace std;//文本查讯类class TextQuery{...
2010-01-13 12:17:00 103
原创 UML学习之听课后记
听了《尚学堂》关于UML学习的两天的课,自己感觉这课还不错,关键是讲的人结合了软件开发中的具体的经验,UML是一门工具,只有结合具体的应用场景,才能看见其价值。 这课程主要讲了这几个方面:类图,顺序图,状态图,用例编写,其它的也基本上只是提到了一下。虽然结合的是Java的开发讲的,结合了一些Java的具体的框架,自己在这方面有些不懂,但还是感觉有收获吧。 不同的图相当于一种分析的角度,
2010-01-12 18:32:00 634
UML学习之听课后记
听了《尚学堂》关于UML学习的两天的课,自己感觉这课还不错,关键是讲的人结合了软件开发中的具体的经验,UML是一门工具,只有结合具体的应用场景,才能看见其价值。 这课程主要讲了这几个方面:类图,顺序图,状态图,用例编写,其它的也基本上只是提到了一下。虽然结合的是Java的开发讲的,结合了一些Java的具体的框架,自己在这方面有些不懂,但还是感觉有收获吧。 不同的图相当于一种分析的角度,类图是静态的...
2010-01-12 18:32:00 98
原创 cpp primer 习题 11.18
#include #include#include #include using namespace std;int main(){ ofstream oddFile("oddFile.dat"); ofstream evenFile("evenfile.dat"); //打开文件失败 if (!oddFile||!evenFile) { cerr
2010-01-11 09:49:00 510
cpp primer 习题 11.18
#include <iostream>#include<fstream>#include <iterator>#include <algorithm>using namespace std;int main(){ ofstream oddFile("oddFile.dat"); ofstream evenFile("e...
2010-01-11 09:49:00 66
原创 cpp primer 习题 11.16
#include #include #include #include #include #include using namespace std;int main(){ string fileName; //输入文件名 cout<<"Enter input file name:"<<endl; cin>>fileName; //打开文件 i
2010-01-10 22:43:00 489
cpp primer 习题 11.16
#include <iostream>#include <cstdlib>#include <fstream>#include <string>#include <iterator>#include <algorithm>using namespace std;int main(){ str...
2010-01-10 22:43:00 125
原创 UML听课笔记
在网上找了一门UML的课,相当不错,听完以后,至少感觉自己入门了。呵呵 下面是听的过程程随手记下的一些概念。1. 图相当于一种角度2. 交互图(顺序图、协作图)、类图、活动图、状态图等等 3. 类图是静态建模4. 顺序图是对动态的建模5. 用例是文本形式的情节描述,用例不是用例图6. 用例的名称应使用动词开头7. 编写用例的时候应尽量使用行业的专业名称,不要使用计算
2010-01-10 17:38:00 547
UML听课笔记
在网上找了一门UML的课,相当不错,听完以后,至少感觉自己入门了。呵呵下面是听的过程程随手记下的一些概念。1. 图相当于一种角度2. 交互图(顺序图、协作图)、类图、活动图、状态图等等 3. 类图是静态建模4. 顺序图是对动态的建模5. 用例是文本形式的情节描述,用例不是用例图6. 用例的名称应使用动词开头7. 编写用例的时候应尽量使用行业的专业名称,不要使用计算机...
2010-01-10 17:38:00 104
原创 cpp primer 验证 p346页
#include #include #include #include using namespace std;string make_plural(size_t ctr,const string &word, const string &ending){ return (ctr<=1) ? word : word+ending; //make_plural(wc, "
2010-01-09 12:05:00 543
dd-wrt路由模式设置说明.doc
2020-07-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人