Puoi anche evitare di richiamare programmi esterni e fare come spiegato qui.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum