You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to C++ GCU Forum
zoso
unread,
May 23, 2024, 3:00:55 PM5/23/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to C++ GCU Forum
Your line in the setter is not doing what you think it is doing.
It's just reassigning the member variable pro to itself which is why whatever you are setting is not reflecting during printing. Change the name of the input argument of setPro to something other than pro and you should hit into errors. You can't assign int* to int[30]. Look up std::array and use that.
Andres Com
unread,
May 24, 2024, 12:10:39 PM5/24/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message