Bonjour,
j'utilise Qt et dans mon programme certain de mes prinft s'affiche et d'autre non alors que le programme passe par ces printf.
Sur un forum j'ai pu lire ça :
Calling printf doesn't guarantee that the output buffer is flushed. You might wanna take a look at fflush. Also, in C++, one way to guarantee that is by using the endl manipulator:
std::cout << "hi" << std::endl;
Could you please take a look if that works for you?
D'accord ça solutionne mon problème mais quelqu'un pourrait m'expliquer comment l'exécution d'un printf peut ne pas s'afficher en console ???
PS: Désolé de déranger pour une question aussi futile mais ça m'énerve de ne pas comprendre comme cela fonctionne.
Partager