我的c++学习(3)字符的输入输出

#include "stdafx.h"
#include<iostream>
using namespace std;
int main(void)
{
/* char c1, c2, c3;
cin>>c1;
cin>>c2>>c3;*/ //char city[11];
// cin.getline(city, 10); //由键盘输入城市名
// cout << "城市名:" << city << endl; int i, j;
float x, y;
cout<<"Input i, j, x, y:"<<endl; //D
cin>>i>>j; //E
cin>>x>>y; //要求输入十进制数据
cout<<"i="<<i<<'\t'<<"j="<<j<<endl;
cout<<"x+y="<<x+y<<endl; }
上一篇:Ocelot中文文档-Route


下一篇:Swift:如何判断一个对象是否是某个类(或其子类)的实例