因为程序有返回值,返回的是一个INT类型

解决方案 »

  1.   

    int main()
    你的main()函数应该有个int类型的返回值,我看了你的main()函数却没有,所以应该定义为:
    void main()
      

  2.   

    const string* StringStack::pop() {
      if(index > 0) {
        const string* rv = stack[--index];
        stack[index] = 0;
        return rv;
      }
      return 0;
    }就是这个函数的返回的值
      

  3.   

    最好别用vc的编译器编译console程序
    用borland c 3.1 or 4.5最好
      

  4.   

    把static const int size = 100;换成enum{size=100};试试。static好象不能在类定义中赋值。