正在加载图片...
C+语言程序设计 第三章结构化程序设 十例3.3】无格式的输入输出cin。 #includesiostream. h> void maino int n1n2: cout<<"Please input 2 numberIn==>; cin>>n1>n2;∥键入数据,两数之间空格或回车键或 Tab键分隔 cout<< The average of the 2 numbersIn==><<(n1+n2)/2<<In";C++语言程序设计 第三章 结构化程序设 【计 例3.3】无格式的输入输出cin。 #include<iostream.h> void main() { int n1,n2; cout<<"Please input 2 number\n==>"; cin>>n1>>n2; //键入数据,两数之间空格或回车键或 Tab键分隔 cout<<"The average of the 2 numbers\n==>"<<(n1+n2)/2<<"\n"; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有