- 博客(11)
- 收藏
- 关注
原创 Ubuntu解压rar
1. 安装unrar: sudo apt-get intall unrar2. 解压文件: unrar e abc.rarunrar的其他用法可查询帮助。
2015-03-31 11:18:03
556
原创 Linux ALSA 音频设备
音频设备文件路径:/dev/snd命名规则: 1. pcmC0D3p => pcm设备,第一块声卡(C0), 第四个设备(D3), 用于播放(p -> playback).2. pcmC1D0c => pcm设备,第二快声卡(C1), 第一个设备(D0), 用于捕捉(c -> capture).
2015-03-31 11:07:44
814
原创 Ubuntu下搭建gtest环境
安装及编译gtest:1. sudo apt-get install libgtest-dev2. cd /usr/src/gtest3. sudo mkdir build4. cd build5. cmake ..6. sudo make创建库文件软链接:1. sudo ln -s libgtest.a /usr/lib/libgtest.a2.
2015-03-31 10:43:25
952
原创 UNION and copy constructor
When user define an UNION like below:unionADDRESS{ 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
942
转载 About opaque data type
User can define an opaque data type in C/C++ header file like below:typedefstructDataHandleDataHandle; ortypedefstructDataHandle*PDataHandle;It will still work even there is no def
2013-08-20 17:22:32
993
转载 About placement new operator
We can use placement new operator to allocate an object on appointed memory. For example:char* buf =newchar[1000];Object* pobj = new(buffer)Object();The object will use the buf space ins
2013-08-20 16:44:47
554
转载 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
994
转载 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
961
原创 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
623
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人