Le code suivant provoque un débordement de pile, mais je ne vois pas pourquoi ...Pourquoi ce code plante-t-il?
int _tmain(int argc, _TCHAR* argv[])
{
cout << "start";
char bmp[1024][768][3];
for (int p = 0; p < 9000; ++p)
{
for(int i = 0; i < 1024; ++i)
{
for(int j = 0; j < 768; ++j)
{
bmp[i][j][0] = 20;
}
}
}
cout << "Stop";
return 0;
}
Merci
Que fait la boucle externe (sur 'p')? – ChrisF
20 n'est pas un char – adhanlon
@ Silmaril89: Oui c'est ... – nico