考慮下面的一小段代碼: // all of these include other headers, lots of code:
#include "myheader1.h"
#include "myheader2.h"
#include <string>
void foo() {
string s("hello world"); // oh no, why does this
我有安裝下面的頭文件來創建一種使用陣列堆棧我得到在第7行以下操作: error: ISO C++ forbids declaration of 'Stack" with no type. 我認爲類型是輸入值。感謝您的幫助,謝謝。 #ifndef ARRAYSTACKER_H_INCLUDED
#define ARRAYSTACKER_H_INCLUDED
// ArrayStacker.h: