Błędy wskaźnika w metodzie transmisji (c ++)
Napotkałem problem. Próbuję zmienić wskaźnik, ale wskaźnik się nie zmienia. Oto mój kod:
void TestPoint(char* point)
{
point=new char[10];
}
int main(int argc, char* argv[])
{
char* test=NULL;
TestPoint(test);
**//At this point the "test" is still null,why ?**
return 0;
}
Przepraszamy, mój angielski jest bardzo słaby i nie wiem, jak wstawić kod c ++.