我试图p通过指针指针设置指针的内存x
int *p = 0;
int **x = &p;
*x = new int[2];
*x[0] = 1; //p[0] = 1
*x[1] = 2; //p[1] = 2
Run Code Online (Sandbox Code Playgroud)
为什么它会因访问冲突错误而失败?
字符串的容量大小是否总是15的倍数?
例如:在所有情况下,容量为15
string s1 = "Hello";
string s2 = "Hi";
string s3 = "Hey";
Run Code Online (Sandbox Code Playgroud)
还是随机的?