64,281
社区成员
发帖
与我相关
我的任务
分享
typedef unsigned short int USHORT;
#include <iostream>
int main()
{
USHORT *pInt = new USHORT;
*pInt = 10;
std::cout << "*pInt " << *pInt << std::endl;
delete pInt;
long *pLong = new long;
*pLong = 90000;
std::cout << "*plong: " << *pLong << std::endl;
*pInt = 20;
std::cout << "*pInt: " << *pInt << std::endl;
std::cout << "*pLong: " << *pLong << std::endl;
std::cout << "pInt: " << pInt << std::endl;
std::cout << "pLong: " << pLong << std::endl;
delete pLong;
return 0;
}