文件名称:lab
介绍说明--下载内容来自于网络,使用问题请自行百度
1.编写一个函数把华氏温度转换为摄氏温度,转换公式为..C=(F-32)*5/9。
2.编程计算图形的面积。程序可计算圆形、长方形、正方形的面积,运行时先提示用
户选择图形的类型,然后,对圆形要求用户输入半径值,对长方形要求用户输入长和宽的
值,对正方形要求用户输入边长的值,计算出面积的值后将其显示出来。
3.编写重载函数Maxl可分别求取两个整数,三个整数,两个双精度数,三个双精度,数的最大值.
-1. Write a function to convert Fahrenheit to Celsius, the conversion formula. . C = (F-32)* 5/9. 2. Calculate the area of graphics programming. Program can calculate round, rectangular, square area, run-time prompts the user to select the first type of graph, then the radius of the circle requires the user to input the value of a rectangular length and width requires the user to input the value of the input side of the square requires the user to long value, calculate the value of the area once it is displayed. 3. Write overloaded functions Maxl strike two integers, respectively, three integers, two doubles, three doubles, the maximum number.
2.编程计算图形的面积。程序可计算圆形、长方形、正方形的面积,运行时先提示用
户选择图形的类型,然后,对圆形要求用户输入半径值,对长方形要求用户输入长和宽的
值,对正方形要求用户输入边长的值,计算出面积的值后将其显示出来。
3.编写重载函数Maxl可分别求取两个整数,三个整数,两个双精度数,三个双精度,数的最大值.
-1. Write a function to convert Fahrenheit to Celsius, the conversion formula. . C = (F-32)* 5/9. 2. Calculate the area of graphics programming. Program can calculate round, rectangular, square area, run-time prompts the user to select the first type of graph, then the radius of the circle requires the user to input the value of a rectangular length and width requires the user to input the value of the input side of the square requires the user to long value, calculate the value of the area once it is displayed. 3. Write overloaded functions Maxl strike two integers, respectively, three integers, two doubles, three doubles, the maximum number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C++实验2.cpp
C++实验3.cpp
lab1.cpp
C++实验3.cpp
lab1.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.