数组的输入与输出.cpp
来源:互联网 发布:刘涛 黑历史 知乎 编辑:程序博客网 时间:2024/05/20 14:14
#include<iostream>
using namespace std;
int main()
{
int a[3][4];
int i,j;
cout<<"please input 12 numbers:";
for(i=0;i<=2;i++)
{
for(j=0;j<=3;j++)
cin>>a[i][j];
}
cout<<endl;
for(i=0;i<=2;i++)
{
for(j=0;j<=3;j++)
cout<<a[i][j]<<" ";;
}
cout<<endl;
return 0;
}
using namespace std;
int main()
{
int a[3][4];
int i,j;
cout<<"please input 12 numbers:";
for(i=0;i<=2;i++)
{
for(j=0;j<=3;j++)
cin>>a[i][j];
}
cout<<endl;
for(i=0;i<=2;i++)
{
for(j=0;j<=3;j++)
cout<<a[i][j]<<" ";;
}
cout<<endl;
return 0;
}
- 数组的输入与输出.cpp
- cpp:处理字符串与数字的混合输入(动态数组)
- 二位数组的输入与输出
- 字符数组的输入与输出
- 输入 /输出 缓冲区 与 数组的常识
- 字符数组的输入与输出
- Cpp Primer<<学习IO标准库--输出缓冲区的管理、文件输入与输出_6
- 对象数组输入与输出
- 对象数组输入与输出
- 二位数组的输入与按列输出
- C语言字符数组的输入与输出
- 关于C语言数组的输入与输出
- “【】”的输入与输出
- 数组的输入 和输出
- ACM 对象数组输入与输出
- C++习题 对象数组输入与输出
- ojC++习题 对象数组输入与输出
- C++习题 对象数组输入与输出
- CentOS下yum安装配置MySQL
- CentOS使用第三方软件库EPEL、RPMForge与RPMFusion
- UVa 218 - Moth Eradication
- GPRS无线数据采集器通信范例
- HTTP 协议详解
- 数组的输入与输出.cpp
- django操作数据库使用中文的方法
- Host SMBus controller not enabled!
- [备忘]Linux操作系统里查看所有用户
- 通过函数调用找出数组中的最大值及其所在的行和列.Cpp
- 循环输入一个数,判断其是否是素数.Cpp
- 用extern对外部变量作提前引用声明,以扩展程序文件的作用域.Cpp
- 一个用于对于诸如 abc${p1}${p2}def 这样字符串进行处理的Java类
- 用scanf和printf函数进行输入和输出.cpp