标签:判断 cpp image 整数 技术分享 str opened 应用程序 main
1:代码如下:
// 3.1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> using namespace std; void main() { int iInput; cout << "输入一个整数" << endl; cin >> iInput; //输入一整型数 if(iInput%2!=0) cout << "这个整数是奇数" << endl; }
运行结果:
标签:判断 cpp image 整数 技术分享 str opened 应用程序 main
原文地址:http://www.cnblogs.com/lovemi93/p/7506538.html