适合初学者的C++代码:将单位尺转换成米
#include <iostream> using namespace std; int main() { double f; double m; cout<< " enter Length in Feet"; cin>>f; m = f/3.28; // Convert To Meters cout << f << "feet is" << endl << m << "Meter's" << endl; system("pause"); return 0; }