double large_cake_radius=0;//声明大蛋糕的面积?为什么必须要对这个变量
int main()
{
int small_price=0;//声明一个小蛋糕的价格
int large_price=0;//声明大蛋糕的价格
double small_cake_radius;//声明小蛋糕的面积
double large_cake_radius=0;//声明大蛋糕的面积
double small_areaprice;//声明小蛋糕每平方英寸的价格
double large_areaprice;//声明大蛋糕每平方英寸的价格
cout > small_price;
cout > large_price;
cout > small_cake_radius;
cout > large_price;
small_areaprice = Buyarea(small_price,small_cake_radius);
large_areaprice = Buyarea(large_price,large_cake_radius);
if (small_areaprice > large_areaprice) {
cout |
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|