| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1218 人关注过本帖
标题:[求助]九九乘法表
取消只看楼主 加入收藏
jerry931230
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2006-4-22
收藏
 问题点数:0 回复次数:2 
[求助]九九乘法表
九九乘法表
.cpp(3) : error C2239: unexpected token '{' following declaration of 'main'
错在那里??



#include<iostream>
int main
{
int a,b;
for(a=0,a<=9,a++);
for(b=0,b<=a,b++);
{
cout<<a&"*"&b&"="<<a*b<<" ";
}
cout<<endl;
}
搜索更多相关主题的帖子: 乘法表 int main cout 
2007-06-02 21:26
jerry931230
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2006-4-22
收藏
得分:0 
#include<iostream.h>
int main()
{
int a,b,n;
for(a=0;a<9;a++);
{
for(b=0;b<a;b++);
{
n=a*b;
cout<<a<<"*"<<b<<"="<<n<<" ";
}
cout<<endl;
}
return 0;
}

2007-06-03 11:10
jerry931230
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2006-4-22
收藏
得分:0 

最后为什么是
9*9=81
Press any key to continue


2007-06-03 11:11
快速回复:[求助]九九乘法表
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011152 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved