热门

最新

红包

立Flag

投票

同城

我的

发布
qq_47072535
qq_47072535
5 年前
trueqq_47072535

#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"出现报错,是什么原因

CSDN App 扫码分享
分享
评论
3
打赏
  • 复制链接
  • 举报
下一条:
不好意思,我胡汉三又回来推荐自己的拙作了,cv入门竞赛的干货文章,请多多指教
立即登录