编辑器
#include
using namespace std; int main() { int* ptr = new int; // Create memory *ptr = 35; // Store a value cout << *ptr; // Print the value delete ptr; // Free the memory return 0; }
35