error: expected unqualified-id before 'int'

出错现场:

 

    bool i, int j;


将逗号改成分号即可。

 

C/C++不能在同一条语句中定义不同类型的变量。

posted on 2013-02-06 21:18  铁树银花  阅读(1094)  评论(0编辑  收藏  举报

导航