Posts by Ricardo Rodrigues • 141 points
5 posts
-
1
votes1
answer88
viewsQ: Exit loop as soon as the string name equals 0
#include <iostream> #include <locale.h> #include <stdlib.h> #include <stdio.h> #include <string.h> using namespace std; int…
-
3
votes1
answer433
viewsQ: I’m wanting to display the amount of negative numbers typed using functions
#include <iostream> #include <locale.h> using namespace std; int getnegativo(int a, int b); int main() { setlocale(LC_ALL, "portuguese"); int…
-
2
votes2
answers1348
viewsQ: How to show the largest number typed, using functions?
#include <iostream> using namespace std; void maior(int a, int b); int main() { int cont, maior1; do { cout << "digite um valor: "; cin…
-
3
votes1
answer559
viewsQ: I’m having trouble displaying the names of people over 18
/*Escreva um programa que receba o nome, profissão e a idade de 10 pessoas, calcule e imprima a quantidade de pessoas maiores de idade (idade >= 18 anos) e seus respectivos…
-
4
votes2
answers1313
viewsQ: C++ - Stop condition in repeat structure
How to put this code in a repeat structure so that after the calculation is shown the option "Type S to exit or C to continue"? #include <iostream> #include <string.h> #include…