-3

I have been using Visual Studio and I think I must have messed with some setting. I can't include basic things like <iostream>. How can I fix this?

#include <iostream> // for standard I/O
#include <string>   // for strings
#include <iomanip>  // for controlling float print precision
#include <sstream>  // string to number conversion
#include <opencv2/imgproc/imgproc.hpp>  // Gaussian Blur
#include <opencv2/core/core.hpp>        // Basic OpenCV structures (cv::Mat, Scalar)
#include <opencv2/highgui/highgui.hpp>  // OpenCV window I/O

using namespace std;
using namespace cv;

All the above lines are in red squiggle below. My guess is while trying to configure Visual Studio to use OpenCv, I messed with some setting.

4

1 回答 1

3

您很可能忘记添加“使用命名空间标准”,因为没有它,iostream 中几乎没有什么是真正有用的。如果您收到“找不到...”,那么您有安装问题,应该重新安装 Visual Studio,因为标头没有正确放置。

希望这会有所帮助,请随时发布您的代码,我可以肯定地告诉您问题出在哪里,但这是最有可能的。

于 2013-08-14T15:12:24.577 回答