#include <iostream> using namespace std; struct Foo { Foo() {} Foo(int) {} void fun() {} }; int main(void) { Foo a(10); a.fun(); Foo b(); b.fun(); return 0; }
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题