我在使用 stringstream 时遇到问题。我的 Visual Studio 和 linux g++ 都无法理解 stingstream。我添加了 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
}
我正在编写一个编译器,所以代码就是输出,这就是为什么它可能会有点奇怪。