#include <iostream> using namespace std; int main() { string str = "123"; string* ps = &str; cout << (*ps).size() << endl; cout << ps->size() << endl; // (*ps).foo 一般写成 ps->foo return 0; }
65,187
社区成员
250,526
社区内容
加载中
试试用AI创作助手写篇文章吧