📅  最后修改于: 2022-03-11 14:44:53.994000             🧑  作者: Mango
#include
int main()
{
string* p;
int n;
p = new string; // Dynamically allocate a string object and save the address in the pointer variable p.
}