热门

最新

红包

立Flag

投票

同城

我的

发布
mzc_love
良缘白马
5 年前
truemzc_love

现实面前都得趴下,你拥有的资本和你的努力根本配不上你的野心。

CSDN App 扫码分享
分享
评论
3
打赏
  • 复制链接
  • 举报
下一条:
#include "stdafx.h"#include <iostream>const int citys=5;const int year=4;int _tmain(int argc, _TCHAR* argv[]){ using namespace std; const char * city[citys]= { "Beijing", "Shanghai", "Nanjing", "Tianjin", "Aomen " }; int maxtemps[year][citys]= { {33,24,23,14,15}, {34,5,234,5,34}, {34,5,34,65,42}, {12,23,4,31,12} }; cout<<"max temps\n\n"; for (int i=0;i<citys;++i) { cout<<city[i]<<":\t"; for (int j=0;j<year;++j) { cout<<maxtemps[j][i]<<'\t'; } cout<<endl; } system("pause"); return 0;}#include "stdafx.h"出现报错,是什么原因
立即登录