Posts by Rodrigo Richa • 26 points
2 posts
-
0
votes2
answers889
viewsA: Transfer content from one stack to another C++
In your case, you are using a stack with list. To be able to use a stack, you need to use the push methods to insert value into the stack and pop to remove value from the stack. There are some…
-
1
votes3
answers2036
viewsA: Error of Segmentation fault (dumped core)
Possibly you are bursting your memory capacity, as I see you are not accessing a position improperly. Look at that: a float occupies 4Kb. Using the float vector size with 700,000 positions, it is…