1樓:匿名使用者
area.h
#include
class area
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
area.cpp
#include"area.h"
area::area(float round)area::area(float ********_bottom, float ********_height)
void main()
******** 三角形
trapezia 梯形
round 圓
rectangle 矩形
inscribed circle 內切圓circumcircle 外接圓
inner equilateral ******** 內接全等三角形
2樓:
area.h中建一個類 裡頭過載求面積的area()函式
比如按引數個數
然後在main中呼叫就行了
C語言程式設計題,C語言程式設計題
兩種思路,一種設計過程比較簡單,就是直接用程式模擬所有可能的路徑,把合題意的走法全部計數。這種演算法的時間複雜度大約在o 2 n 左右,比較慢。另一種是建立一個數學模型,採用組合數的思想解這個問題,這樣設計出程式只是一個數學計算過程,組合數計算最快的演算法是o n 在加上求和,演算法時間複雜度為o ...
c語言程式設計題,C語言程式設計題
include using namespace std class date date int year,int month,int day year year month month day day date void set int y,int m,int d int gety int getm...
C語言的程式設計題,急 c語言程式設計題
整元換零錢的問題,把一元換成一分,2分,5分的硬幣,共有多少種換法?include main printf d count 4 用分支編寫程式,把從鍵盤輸入的數字按下列對應關係顯示。輸入數字 顯示 1 up 2 down 3 left f 4 right 其它 include main 1.incl...