摘要:
定义一个基类Shape,在此基础上派生出Rectangle和Circle,二者都有getArea()函数计算对象的面积。使用Rectangle类创建一个派生类Square。 1 #include <iostream> 2 #include <string> 3 #include<string.h> 阅读全文
posted @ 2023-03-16 22:48
nlkdfgnvfdkl
阅读(38)
评论(0)
推荐(0)
摘要:
编写一个函数,统计一条英文句子中字母的个数,在主程序中实现输入输出。 1 #include <iostream> 2 #include <string> 3 #include<string.h> 4 #include <stdio.h> 5 using namespace std; 6 7 int 阅读全文
posted @ 2023-03-16 10:48
nlkdfgnvfdkl
阅读(42)
评论(0)
推荐(0)

浙公网安备 33010602011771号