What are the two errors of the following program?
Solutions:
take note that the keyword "delete" cannot be used as the function name or variable name
Error 1: expected unqualified-id before 'delete'
Solution:
function name error at the function header
you cannot have the word "delete" as the function name, variable name
use different function name such as deleteNode
Error 2: expected primary-expression before ')' token
Solution:
function caller name error in the main function body
you cannot have the word "delete" as the function caller name, function name, variable name
use different function name such as deleteNode
No comments:
Post a Comment