#include <iostream>
using namespace std;
int main()
{
auto x = 222; // 使用auto必须赋初始值
decltype(199.99) y;
cout << "x:" << sizeof(x) << endl;
cout << "y:" << sizeof(y) << endl;
}
#include <iostream>
using namespace std;
int main()
{
auto x = 222; // 使用auto必须赋初始值
decltype(199.99) y;
cout << "x:" << sizeof(x) << endl;
cout << "y:" << sizeof(y) << endl;
}