class TextureRotationUtil {
public:
static const int* TEXTURE_NO_ROTATION;
};
const int* TextureRotationUtil::TEXTURE_NO_ROTATION = (int[]){1, 2, 3};
int main() {
int* x = (int[]){1, 2, 3};
cout << typeid(x).name() << endl;
auto y = "12345";
cout << typeid(y).name() << endl;
char buff[8];
char* f = buff;
int intBuffer[8];
int* fi = intBuffer;
}
c++数组与指针小记
最新推荐文章于 2024-01-22 21:29:56 发布