SubhanUllah Posted October 13, 2022 Report Posted October 13, 2022 class thing { public: int x; int y; thing(int x, int y) { this->x = x; this->y = y; } } thing whatever(int p) { return thing(p, p); } int main(int argc, char * argv[]) { thing result; result = whatever(0); ... }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now