09 2021 档案
摘要:c和c++中使用assert()函数来实现断言。 eg: #include <stdio.h> #include <assert.h> int main() { int x = 7; x = 9; assert(x==7); /* Rest of the code */ return 0; } 执行
阅读全文
摘要:编译时 加上 pkg-config --cflags --libs opencv 选项
阅读全文
摘要:char ToUpper(char c){ return (ch >= 'a' && ch <= 'z') ? (ch - 'a' + 'A') : ch;}char ToLower(char c){ return (ch >= 'A' && ch <= 'Z') ? (ch - 'A' + 'a'
阅读全文
摘要:A stack overflow in task spam_task has been detected. 错误改正方法: 将数组移到函数外部,作为全局变量。
阅读全文