摘要: 对类Point重载“++”(自增)、“--”(自减)运算符,要求同时重载前缀和后缀的形式。 1 #include <iostream> 2 #include <string> 3 #include<string.h> 4 #include <stdio.h> 5 using namespace st 阅读全文
posted @ 2023-03-17 23:01 nlkdfgnvfdkl 阅读(112) 评论(0) 推荐(0)
摘要: 请编写-一个计数器Counter类,对其重载运算符“十”。 1 #include <iostream> 2 #include <string> 3 #include<string.h> 4 #include <stdio.h> 5 using namespace std; 6 7 class Cou 阅读全文
posted @ 2023-03-17 22:03 nlkdfgnvfdkl 阅读(65) 评论(0) 推荐(0)