Errores de puntero en el método de transmisión (c ++)
Encontré un problema. Intento cambiar el puntero, pero el puntero no cambia. Aquí está mi código:
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;
}
Lo siento, mi inglés es muy pobre y no sé cómo insertar el código c ++.