摘要:
下面这段代码有什么问题吗?(Arduino上运行)class C{public: C(){ ptr = new int[12]; } ~C(){ if(ptr!=NULL)delete [] ptr; } void reset(){ ... 阅读全文
摘要:
注意int不是4字节而仅仅是2字节!!!int:-32,768 ~ 32,767 (2字节)long: 4字节http://www.arduino.cc/en/Reference/Int 阅读全文
摘要:
$ch = "你";$ch = iconv("UTF-8","GB2312",$ch);$xx= sprintf("%X",ord($ch[0])*0x100+ord($ch[1]));echo $xx;输出:C4E3 阅读全文
摘要:
OpenCV 连接 Android IP摄像头 c++ ip camera raspberry pi
warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:545) 解决方案 阅读全文
摘要:
#include using namespace std;//函数定义#define printArr(arr,n,format) \printf("%s:",#arr);\for(int i = 0;i<(n);++i){\ printf((format),arr[i]);\ prin... 阅读全文
摘要:
终极可能原因:版本太旧http://stackoverflow.com/questions/14993855/android-adb-device-offline-cant-issue-commands 阅读全文