Sample 5.20:nested.cpp
来源:互联网 发布:淘宝违规处罚考试 编辑:程序博客网 时间:2024/06/01 08:18
#include<iostream>const int Cities = 5;const int Years = 4;int main(){ using namespace std; const char * cities[Cities] = { "Gribble City", "Gribbletown", "New Gribble", "San Gribble", "Gribble Vista" }; int maxtemps[Years][Cities] = { {95,99,86,100,104}, {95,97,90,106,102}, {96,100,940,107,105}, {97,102,89,108,104} }; cout << "Maximum temperatures for 2002 - 2005\n\n"; for(int city = 0;city < Cities;++city) { cout << cities[city] << ":\t"; for(int year = 0;year < Years;++year) cout << maxtemps[year][city] << "\t"; cout << endl; } return 0;}
0 0
- Sample 5.20:nested.cpp
- Sample 2.2:carrot.cpp
- Sample 2.3:getinfo.cpp
- Sample 2.4:sqrt.cpp
- Sample 2.5:ourfunc.cpp
- Sample 2.6:convert.cpp
- Sample 3.1:limits.cpp
- Sample 3.2:exceed.cpp
- Sample 3.3:hexoct.cpp
- Sample 3.4:hexoct2.cpp
- Sample 3.5:chartype.cpp
- Sample 3.6:morechar.cpp
- Sample 3.7: bondini.cpp
- Sample 3.9:fltadd.cpp
- Sample 3.8: floatnum.cpp
- Sample 3.10:arith.cpp
- Sample 3.11:divide.cpp
- Sample 3.12:modulus.cpp
- android的apk之反编译
- Sample 5.19:textin4.cpp
- Android SQLite数据库判断某张表是否存在的语句
- Android笔记—界面如何设置全屏化
- 作为程序员必须知道的编程语言编年史
- Sample 5.20:nested.cpp
- Object-C 类的声明
- ubuntu下安装JDK和配置环境变量
- Proactor和Reactor模式_继续并发系统设计的扫盲
- 机器学习之传统贝叶斯
- 2013.12.25
- 平衡二叉树
- 第八天:对象图导航语言
- [服务器开发]可伸缩系统的设计模式(译)