Posts by Jose Carlos Filho • 21 points
2 posts
-
2
votes1
answer48
viewsA: How do I make the code read a new value if the condition is not met? - C
You have many options! 1st Validate the entry: int main(void){ int i; do{ printf("Digite um inteiro: "); scanf("%d", &i); if(i<1) printf("Entrada invalida\n"); }while(i<1); while(i>=1){…
-
0
votes0
answers7
viewsQ: Error loading audio to SFML
My IDE is Clion when I try to open an audio file that way: Music menuMusic; if (!menuMusic.openFromFile("menu.wav")) return EXIT_FAILURE; It provides the this error: Failed to open sound file…