0

I'm Samuel and currently working on problem set 4 of CS50x recover. I have given it my best shot but came across an error:

error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]

if (argc =! 2)

I'm not sure how to solve it, could you please help me and tell me what is wrong with my code?

Thank you,

Kind Regards,

Samuel

[EDIT: Unrelated code removed per honor code policy.]

0

It's a syntax error. The "not equal" operator is !=, not =!.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .