Skip to content

compilation warning #1

@camillenoufi

Description

@camillenoufi
  1. 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.

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions