⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpp05.cpp

📁 C++参考书
💻 CPP
字号:

// Coded by plusir -- Dec.27.2002.
// Standard C++ Bible -- (P70-3-5)

#include <iostream>
using namespace std ;

double volume( double, double, long ) ;

int main()
{
	float ht, wd ;
	long int dp ;

	cout << "Enter height( x.xx ), width( x.xx ), depth( x ): " ;
	cin >> ht >> wd >> dp ;

	cout << "Volume = " << volume( ht, wd, dp ) << endl ;

	return 0 ;
}

double volume( double height, double width, long depth )
{
	return height * width * depth ;
}

⌨️ 快捷键说明

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