What is the point in overloading ++ operator without `int` as argument

前端 未结 0 1231
不思量自难忘°
不思量自难忘° 2020-12-31 08:23

Below I have a really basic vector class with ++ operator overloaded.

#include

class vector
{
public:
    int x = 0, y = 0;
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题