Question: 8) Find all errors in the following declaration 1 class Thing 2 ( 3 4 5 6 public: char c;he tof. int *p: 7
8) Find all errors in the following declaration 1 class Thing 2 ( 3 4 5 6 public: char c;he tof. int *p: 7 9 }; must initialize k float& f X is not a ref Thing (char ch, float x) { c = ch; p = &*;# = x; }
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
Heres a corrected version assuming you want f to be a regular float member class Thing public char c ... View full answer
Get step-by-step solutions from verified subject matter experts
