摘要:
找了两个多小时,最后才发现是版本问题。因为是网上下的代码,可能用的版本比较高,而我自己的是2.4.10版本的opencv,所以正确的代码应该是如下: CV_Error(CV_StsBadArg,"comMask is empty or has incorrect type(not CV_8UC1)" 阅读全文
摘要:
Roman to Integer:题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.解法(C++):class Solution {... 阅读全文