摘要:std::stringstr;chararray[]="HelloWorld";for(inti=0;array[i]!=0;i++)str+=array[i];//-----------------------------------std::stringstr;chararray[]="HelloWorld";str=array;Use of NULL is discouraged in C++ because it can be redefined to be anything one wants -- c++ standards do not d
阅读全文
05 2011 档案
摘要:'static' can indeed be used in C++ to do what you want - to create a Static Member Function. The compiler message is actually telling you that the 'static' keyword is not valid on the definition of the method, it should only be used in the class definition. So the following compiles
阅读全文
摘要:cat /proc/acpi/thermal_zone/THM0/temperature最近笔记本的风扇老是转个不停,搜索了一些原因,说是无线网卡的原因,可以把无线网卡调到省电模式,sudo iwconfig wlan0 power on允许会有错误:Error for wireless request "Set Power Management" (8B2C) : SET failed on device wlan0 ; Operation not supported.继续寻找问题,发现有怀疑是netmanager正在允许,于是diable它:sudo /etc/init
阅读全文
摘要:1. install subversionaptitudeinstallsubversion2. check out source codecd~/<my_working_directory>svncohttps://code.ros.org/svn/opencv/trunk3. install cmakeaptitudeinstallcmake4.利用cmake产生makefile,新建一个folder,cd foldercmake-DCMAKE_BUILD_TYPE=RELEASE-DCMAKE_INSTALL_PREFIX=/usr/local sourcecode/path
阅读全文
浙公网安备 33010602011771号