-1
아래 클래스의 선언 사이의 차이점은 무엇입니까?A a의 다른 점은 무엇입니까? 및 A();
class A
{
public:
A()
{
std::cout << "A()\n";
}
~A()
{
std::cout << "~A()\n";
}
};
int main(int argc, char *argv[])
{
A a; // <-- this call the constructor and destructor
A b(); // <-- this is not!! what is a b()?
return 0;
}
b()
은 무엇입니까?
명백한 속임수에 대답하지 마십시오. – NathanOliver