- 博客(11)
- 收藏
- 关注
原创 Ubuntu解压rar
1. 安装unrar: sudo apt-get intall unrar 2. 解压文件: unrar e abc.rar unrar的其他用法可查询帮助。
2015-03-31 11:18:03
520
原创 Linux ALSA 音频设备
音频设备文件路径:/dev/snd 命名规则: 1. pcmC0D3p => pcm设备,第一块声卡(C0), 第四个设备(D3), 用于播放(p -> playback). 2. pcmC1D0c => pcm设备,第二快声卡(C1), 第一个设备(D0), 用于捕捉(c -> capture).
2015-03-31 11:07:44
723
原创 Ubuntu下搭建gtest环境
安装及编译gtest: 1. sudo apt-get install libgtest-dev 2. cd /usr/src/gtest 3. sudo mkdir build 4. cd build 5. cmake .. 6. sudo make 创建库文件软链接: 1. sudo ln -s libgtest.a /usr/lib/libgtest.a 2.
2015-03-31 10:43:25
899
原创 UNION and copy constructor
When user define an UNION like below: union ADDRESS { char* road; string street; }; The compiler will report an error(visual studio) : member 'ADDRESS::street' of union 'ADDRESS' ha
2013-08-21 14:39:43
903
转载 About opaque data type
User can define an opaque data type in C/C++ header file like below: typedef struct DataHandle DataHandle; or typedef struct DataHandle* PDataHandle; It will still work even there is no def
2013-08-20 17:22:32
950
转载 About placement new operator
We can use placement new operator to allocate an object on appointed memory. For example: char* buf = new char[1000]; Object* pobj = new(buffer)Object(); The object will use the buf space ins
2013-08-20 16:44:47
516
转载 Get all tables' name from sqlite database
A table named sqlite_master. It's storing all tables' properties. You can get all tables' name by executing a SQL sentence. 1. SELECT Name FROM sqlite_master WHERE type='table'
2013-08-20 13:05:16
953
转载 Generate .lib from .dll and .def
1. Start visual studio command line. 2. Change to the directory which includes .dll and .def files. 3. run cmd "lib /def:xxx.def /MACHINE:x86"
2013-08-13 15:36:58
922
原创 How to delete the hidden partition of Win7 OS
Suppose that the C partition is the system partition. 1. Start windows "CMD". 2. Run "bcdboot c:\windows /s c:" => This means copy the boot files into partition C. 3. In diskmgmt.msc set partiti
2013-08-08 08:44:06
594
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人