Posts by Play Maker • 26 points
2 posts
-
0
votes1
answer152
viewsA: Vectors or Matrices in C/C++
You could create a vector of type bool, which will store whether the armory is empty or not: bool armarioOcupado[10] = {false, false, ... //Inicializar todos em falso 1 - Show situation of all…
-
1
votes1
answer279
viewsA: While C++ does not enter the loop using string getline
Are you typing the answer with the lowercase letter? If this is the case, the program will only identify if it is S or N uppercase. Try to do so: while (escolha=='S' || escolha=='s'); With this he…