我一直在为下面列出的行添加下面列出的2个错误,有人可以告诉我原因吗?
Error 1 error C2143: syntax error : missing ';' before '<'
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
行:
deque; <string> get_image_filename_list(string foldername);
答案 0 :(得分:1)
首先,在源文件的开头尝试include
标题:
#include <deque>
#include <string>
using namespace std;
然后,尝试修改您的行,如:
deque<string> get_image_filename_list(string foldername);