标签:ons out argc cto 编程 actor main c++ str
1.
#include <iostream>
const int CONVER_FACTOR = 12;
int main(int argc, char* argv[])
{
int height = 0;
std::cout << "Pleas enter your height with inch_ ";
std::cin >> height;
if(0 > height)
{
std::cout << "Pleas enter your height with inch_ ";
std::cin >> height;
}
std::cout << "You are " << height/CONVER_FACTOR << " foots and " << height%CONVER_FACTOR << " inches." << std::endl;
return 0;
}
C++ Primer Plus第六版编程练习---第3章 处理数据(未完待续)
标签:ons out argc cto 编程 actor main c++ str
原文地址:https://www.cnblogs.com/f00345709/p/8955760.html