Posts by user237530 • 11 points
7 posts
-
0
votes1
answer37
viewsA: hangman game in C++
I was able to solve! I added this to the condition of the loop: verif[0] = '_'; while(max <= 5 || (strchr(tela, verif[0]) != NULL)){ And I added at the end: else if (strchr(tela, verif[0]) ==…
-
-1
votes1
answer37
viewsQ: hangman game in C++
Hi guys. I have a problem regarding a specific part of the game, which is already complete. The only problem is the condition I put to check if the word was completely guessed. My code: if…
-
0
votes0
answers36
viewsQ: How to resolve Signal: Segmentation fault (core dumped) in C++
I’m trying to make a noose and on that part, always gives the core error dumped. how can I solve this problem? cout << newnome1 << ", ESCOLHA UMA PALAVRA: "; cin >> palavraSecreta;…
-
0
votes1
answer53
viewsQ: String array printing error // C++
I am making a force and in the printing of the drawn word, there is an error in which the words are printed with some numbers or letters not included in its scope. const int quant_palavras = 3;…
-
-3
votes2
answers63
viewsQ: Infinity C loop array
In this example below, how do I print on the screen all values assigned to n during the loop, after its completion? #include <stdio.h> #include <conio.h> int main (void) { int n; for…
-
0
votes2
answers53
viewsA: Array in C - How to print values from an Array
Instead of int i, t; product[i] and value[t] pus : int i; product[i], value[i] and everything settled to have the need for just one loop.
-
-1
votes2
answers53
viewsQ: Array in C - How to print values from an Array
How can I take this information from the keyboard, name and value of three products, and print in table form the name with its value beside? I did so (code at the end), but at the moment appears the…