74

Debian 7.0.0 で CodeBlocks 10.05 を使用して C++ アプリケーションを開発しています。

なぜか以下のコード

#include <iostream>

std::vector< int > delaunayDiv(const std::vector< int <T> > & vP, cv::Rect boundRect,
    std::vector<int>& triangles, int& numTriangles, bool lookRight);

次のエラーを返します

error: 'vector' in namespace 'std' does not name a type
4

2 に答える 2

159

vector次のヘッダーを含める必要があります。

#include <vector>
于 2013-06-01T01:39:55.130 に答える