C++ で Netbeans 7.2 IDE を使用して、音響情報の処理を伴う音楽プロジェクトを実装しています。コード構造を処理するために、STL キューおよびスタック クラスを使用したいと考えています。私の問題は、IDE が std::queue または std::stack クラスを認識せず、それらの横に恐ろしい赤い感嘆符が表示されることです。これらのクラスがなければ、どうすればさらに進歩できるかわかりません。これが私のコードです。前もって感謝します..
#ifndef CHORD_H
#define CHORD_H
#include "../tonestatdynlib/name_pitchstructure.h"
class chord {
public:
chord(int chordNum);
chord (int chordNum, bool stability);
chord(const chord& orig); //copy constructor for use in generative procedure
std::queue<pitchStats> _constituents;
std::string flatPitchList(); //returns a flat pitchname list from chord members
virtual ~chord();
private:
int _chordNumber;
bool _stable;//unless switched otherwise
};
#endif /* CHORD_H */