test.cpp

来自「计算并输出下述各种算法在不同内存容量下的命中率大整数大整数大整数」· C++ 代码 · 共 27 行

CPP
27
字号
#include "stdafx.h"

int main(int argc, char *argv[])
{
	//Of Rectangle
	Rectangle a(3, 4);
	a.show();
	cout<<a.area()<<endl;
	cout<<a.girth()<<endl;
	cout<<endl;
	//Of Triangle
	Triangle b(1, 2, 3);
	b.show();
	cout<<b.area()<<endl;
	cout<<b.girth()<<endl;
	cout<<endl;
	//Of Circle
	Circle c(3.4);
	c.show();
	cout<<c.area()<<endl;
	cout<<c.girth()<<endl;
	cout<<endl;
	//End
	cout<<"Press any key to end...";
	cin.get();
	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?