Posts by victor • 21 points
1 post
-
2
votes1
answer245
viewsQ: How do I add a value to a struct vector, for example in some vector field, because it is from a struct
#include <iostream> #include <vector> using namespace std; struct dados { int pessoas; int consumo; }; int main() { int totalx=0, totaly=0; int n,x,y; vector<dados> info; //int…