何以清尘168:
编译的时候记得加-std=c++11,第230行word[i] = NULL,改成word[i] = 0就不会报[Warning] converting to non-pointer type 'char' from NULL [-Wconversion-null],输入非终结符的时候不要输多个字符组成一个的那种,不然会被识别成俩,产生时结束的时候只输小写end就行了,感谢博主的分享
何以清尘168:
编译的时候记得加-std=c++11,第230行word[i] = NULL,改成word[i] = 0就不会报[Warning] converting to non-pointer type 'char' from NULL [-Wconversion-null],输入非终结符的时候不要输多个字符组成一个的那种,不然会被识别成俩,产生时结束的时候只输小写end就行了,感谢博主的分享