Afficher un message
Vieux 23/02/2008, 19h53   #1
Adam
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Runtime Stack allocation

Is there a way in C++ to allocate a variable amount of stack space at
run-time?

void complex_maths_operation(const int num_rows, double* vector)
{
double temp[num_rows];
....
}

The obvious answer is to use the heap... but if this isn't an option.



  Réponse avec citation
 
Page generated in 0,04202 seconds with 9 queries