摘要:
使用裸指针:#include #include #include #include #include using namespace std;int test(int n){ char * p(new char[13]); n = 12-n; strcpy(p,"hello world!"); string s(p+n); *(p+n) = '\0'; string t(p); cout#include #include #include #include using namespace std;int test(int n){ shared_ptr p(n 阅读全文
posted @ 2013-11-24 15:45
Yuzuka
阅读(213)
评论(0)
推荐(0)

浙公网安备 33010602011771号