if ($to->getText()!="to") fprintf(stdout,"Number: %s\n",$to->getText());这条语句居然出现错误,我真是昏倒啊
注getText()是pccts中定义的一个东西
定义如下
ANTLRChar           *_text;  
ANTLRChar        *getText() const    { return _text; }

解决方案 »

  1.   

    怎么用,我现在这边msdn也没有,急啊,这个是毕业设计,大家帮帮我吧
      

  2.   

    在C里面不支持这种比较的吧!if (&to->getText()!="to") 
    另外你应该用地址符吧$to-------->&to;
      

  3.   

    int strcmp( const char *string1, const char *string2 );Value Relationship of string1 to string2 
    < 0 string1 less than string2 
    0 string1 identical to string2 
    > 0 string1 greater than string2 
      

  4.   

    谢谢edrftgyh(老胡)同学,搞定拉