-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
- warning generated during terminal compilation for this line of code:
MovieCatalog.cpp:399:39:
if (cart[j] -> ID = a2n)
I am assuming you meant to use a == for comparison and not an assignment inside an ‘if’ statement.
- seg fault after the following execution steps:
sell movie -> find that movie -> add that movie to cart -> checkout -> seg fault after "Thank you for your purchase!"
This is possibly related to the error above. I would check the lines of code in that method after the print statement and see if you are pointing something NULL somewhere, perhaps updated a linked list or something related.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels