Posts by Henrique Gumieri • 37 points
8 posts
-
0
votes1
answer154
viewsQ: Error inserting elements into a vector - C++
I’m trying to call the job montVetorCodigo and montVetorPeca waste of main but I have tried several ways to put the elements of a TXT file inside a vector but it only stores the columns of the last…
-
0
votes1
answer29
viewsA: Quick Sort array implementation error
#include <iostream> #include <iomanip> using namespace std; void montVetor(int *v, int n); void showVetor(int *v, int n); void quickSort(int *v, int esq,…
-
0
votes2
answers40
viewsA: Relate a user input to a class pointer
That way my problem was solved #include <iostream> #include "classes.h" #include <vector> using namespace std; int main() { string sLeitor; cout << "Digite seu nome: ";…
-
0
votes1
answer41
viewsA: How do I manipulate specific information from a TXT file in C++?
#include <iostream> #include <fstream> #include <string.h> using namespace std; int main() { fstream arquivo; string sLinha,sAlt,sPes; …
-
0
votes1
answer128
viewsQ: Relate two vectors/arrays of different types and sort them in C++
I have a file . txt from where I need to collect the data (will be placed below). The first column refers to the part code and the second refers to the piece name. I need to find a way to sort the…
-
-1
votes1
answer29
viewsQ: Quick Sort array implementation error
When presenting the elements of the vector, there are strange numbers that do not correspond to those entered by the user. I would like to identify where the error is. #include <iostream>…
-
0
votes2
answers40
viewsQ: Relate a user input to a class pointer
I would like to relate the class pointer corresponding to the user input and present on the screen the attributes related to that object. #include <iostream> #include "classes.h" using…
-
0
votes1
answer41
viewsQ: How do I manipulate specific information from a TXT file in C++?
The file . txt contains the following lines: 1.55 66.5 1.80 90.2 1.66 65.1 1.70 70.0 1.65 58.8 1.58 53.5 1.72 68.5 1.63 67.9 1.71 69.4 1.67 62.4 I need to average the height, average the weight and…