#include <iostream>
using namespace std;
int main()
{
//int *p = nullptr;
////const int *ptr = p; // OK
////const int* &pptr = p; // error: 无法用 "int *" 类型的值初始化 "const int *&" 类型的引用(非常量限定)
////int *const ptr = p; // ok
////int *const &ptr = p; // OK
////const int *const ptr = p; // ok
//const int* const &ptr = p; //ok
return 0;
}
乱七八糟
最新推荐文章于 2025-02-07 10:58:11 发布