?? test.cpp
字號:
#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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -