【发布时间】:2013-09-26 21:01:07
【问题描述】:
#include <iostream>
#include <string>
using namespace std;
int main() {
string *ptr = new string("fff");
string * ptr1 = new string("ffffff");
cout << ptr << endl << ptr1 << endl;
}
ptr 和 ptr1 的表示方式有何不同,*ptr 与 *[space]ptr 的含义相同吗
【问题讨论】:
-
*右边一个空格