Sam:
struct movie{
int week;
int month;
int year;
int rating;
};
In the loop below, I am trying to print out all the information in the vector of struct and I only want decimals in the ratings but this makes it so that there are decimals in all lines after the first iteration.
for(int i = 0; i cout cout cout cout }
Anyone know how I can fix this?
Also, if I'm not using pointers and haven't allocated dynamic memory, is it still possible to have memory leaks?
Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE