我遇到了stringstream的问题。我的Visual Studio和Linux g++都无法理解stringstream。我已经添加了sstream,但没有解决任何问题。我以前曾经使用过它,但现在真的不知道出了什么问题?
#include <sstream>
#include <stdlib.h>
#include "SymbolTable.cpp"
#include "setjmp.h"
using namespace std;
jmp_buf *bfj;
int TOP , SP=3 ;
struct types{int int_val;float float_val;char char_val;bool bool_val;};
types DS[6400];
int main(){
...//some code here
label38 : stringstream s;
label39 : bfj = (jmp_buf *)"label65";
label40 : longjmp(*bfj,1);;
label41 : goto label43;
label42 : TOP=SP;
//some code here
}
我正在编写一个编译器,因此代码是输出结果,这就是为什么它可能看起来有点奇怪。