1.
在编译opencv中碰到如下warning,如何消除这个?
c:\program files\opencv\cv\include\cvcompat.h(784) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
答案:打开cvcompat.h再保存一遍就好了。(右击该文件,open containing folder)
2. vc++ 2008的C:\Program Files\Microsoft Visual Studio 9.0\VC\include这个目录没有iostream.h这个文件吗
答案:#include是C语言头文件的标准形式
#include是C++语言头文件的标准形式
C++为了于C语言兼容,许多C++编译系统保留了头文件以.h为后缀的用法。由于C语言无命名空间,因此用带缀.h的头文件时不必用using namespace std 作声明。
所以,要么用 #include,
要么用#include using namespace std; 但因为VS2008取消了以C语法规则写的头文件,一律使用C++标准库, 所以只能用后者。
另外,双引号与尖括号是有区别的:
#include "iostream.h"表示当要调用某个函数时,先在用户自已编写的文件中查找,如果找不到再到库文件里去找,而#include 是直接到库文件里去找,所以如果是调用自己写的函数的话就用#include "iostream.h",而调用标准库函数的话就用#include 这种形式,可以提高速度。
3. asp.net 控件拖动不了
答案: 不要把项目放在C#下。
阅读(385) | 评论(0) | 转发(0) |