#pragma region convert.cpp
//convert.cpp -- converts stone to pounds
#if 0
#include <iostream>
int stonetolb(int); //function prototype
int main(void)
{
using namespace std;
int stone;
cout << "Enter the weight in stone: ";
cin >> stone;
int pounds = stonetolb(stone);
cout << stone << " stone = ";
cout << pounds << " pounds," << endl;
return 0;
}
int stonetolb(int sts)
{
return 14 * sts;
}
#endif
#pragma endregion
C++ Primer plus--0a5 自定义带返回值的函数
最新推荐文章于 2024-09-16 17:46:36 发布