搜索
编程论坛
→
开发语言
→
C++论坛
→
『 C++教室 』
→ [求助]九九乘法表
标题:
[求助]九九乘法表
取消只看楼主
jerry931230
等 级:
新手上路
帖 子: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
等 级:
新手上路
帖 子:33
专家分:0
注 册:2006-4-22
第
2
楼
得分: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
等 级:
新手上路
帖 子:33
专家分:0
注 册:2006-4-22
第
3
楼
得分:0
最后为什么是
9*9=81
Press any key to continue
2007-06-03 11:11
3
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-144398-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 0.461248 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved