文章目录

http://blog.csdn.net/habit2/article/details/4331804

http://www.cnblogs.com/Romi/archive/2012/08/09/2630014.html

为什么take的值没有被改变:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include <iostream>

using namespace std;

void that(char* thumb)
{
thumb = "everything";

}



int main()
{

char take[100];

that(take);

cout << take << endl;

}
文章目录