用c++输入输出语句编程序。输入一个4位的正整数,输出其各位上的数字。

日期:2018-03-05 20:24:19 人气:2

用c++输入输出语句编程序。输入一个4位的正整数,输出其各位上的数字。

//#include "stdafx.h"//If the vc++6.0, with this line.#include using namespace std;int main(int argv,char *argc[]){ int n; cout 999 & > n) || n9999){ cout << "Input error, exit...\n"; return 0; } cout <
    A+
热门评论