Posts by Daniel Domingues • 9 points
1 post
-
0
votes1
answer45
viewsQ: Printing vector memory garbage
How do I make a program not print vector trash? For example, I created 2 vectors at the beginning of my program with 5 elements each. If the user type numbers above 10 stores in v1 if it is larger…