摘要: 3.7.1编写一个小程序,要求用户使用一个整数指出自己的身高(单位为英寸),然后将身高转换为英尺和英寸。该程序使用下划线字符来指示输入位置。另外,使用一个const符号常量来表示转换因子。#include <iostream>using namespace std;int main(){ int a ; const int yinzi (12) ; cout << "你的身高:_____英寸。\b\b\b\b\b" ; cin >> a ; cout << "你的身高:" << a / yinz 阅读全文
posted @ 2013-05-17 17:18 活在二次元的伪触 阅读(500) 评论(0) 推荐(0) 编辑