Ja to riesim jednoducho, otvorim cmd tam kde je vytvori exe subor a spustam si ho priamo cez prikazovy riadok. Tu je vyhoda Visual C++ kde po skonceni programu caka este na stlacenie lubovolnej klavesy, ale mozno sa to da niekde nastavit aj v Dev-C++
Pripadne daj na koniec funkciue main (pred return) prikaz
Kód:
system("pause");
a na zaciatku inkuluduj hlavickovy subor stdlib
Kód:
#include <stdlib.h>
_________________ Empty your memory, with a free()… like a pointer! If you cast a pointer to an integer, it becomes the integer, if you cast a pointer to a struct, it becomes the struct… The pointer can crash…, and can overflow… Be a pointer my friend…