cpp04.cpp
来自「C++参考书」· C++ 代码 · 共 35 行
CPP
35 行
// Coded by plusir -- Dec.27.2002.
// Standard C++ Bible -- (P68-3-4)
#include <iostream>
using namespace std ;
int widthInFeet( void ) ;
int widthInInches( int ) ;
int main()
{
int feet = widthInFeet() ;
int wd = widthInInches( feet ) ;
cout << "Width in inches = " << wd << endl ;
return 0 ;
}
int widthInFeet( void )
{
int feet ;
cout << "Enter width in feet: " ;
cin >> feet ;
return feet ;
}
int widthInInches( int feet )
{
return feet * 12 ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?