convert.cpp
来自「《C++.Primer.Plus.第五版.中文版》的源代码」· C++ 代码 · 共 20 行
CPP
20 行
// convert.cpp -- converts stone to pounds#include <iostream>int stonetolb(int); // function prototypeint main(){ 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;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?