看看有什么有关问题

看看有什么问题?#includeiostreamusing namespace stdstruct Test{Test(){}Test( int ){}void fun(){}}

看看有什么问题?
#include<iostream>
using namespace std;

struct Test
{
Test(){}
  Test( int ){}

  void fun(){}
};
void main( void )
{
  Test a(1);
  a.fun();
  Test b();
  b.fun();
}

[解决办法]
Test b();这一行,改成Test b;你这样就变成声明一个函数了