# include#include using namespace std; The class point {public: point (int xx=0, int yy=0) {x=xx; Y=yy. } point (point & amp; P); Int getx () {return x; } int gety () {return y; } private: int x, y; }; Point: : point (point & amp; P) {x=p.x; Y=p.y; Cout<& lt;" Copy constructor is called "& lt; CodePudding user response:
Sorry, figure out, error below
Unexpceted class line (
Unexpected token (s) of the preceding;
Missing) before constant
Missing; Before constant
unexpected end of file foundCodePudding user response:
This code is a bit messyCodePudding user response:
After what appears to be lack of brackets? Or a semicolon? Or other problems,
Often encounter while back said what where you may be missing semicolon, brackets, after but the error of the actual situation of actual location may not like his error