Posts by Mateus Lucas • 55 points
2 posts
-
4
votes1
answer1747
viewsQ: Function to sum elements of an array does not return correct value
I am making a program for a shopping list, the user passes to the program the values of each product and each one is stored in a vector. Then we added the elements of the vector to give the total…
-
1
votes1
answer550
viewsQ: How to pass the field of a struct to a function in a library separately?
Hello, everybody. I have a program that has a structure like this: struct itemDeLista{ char nomeProd[10]; float quant; float vUnit; int item; }; But I need to count the number of letters in the…