| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1359 人关注过本帖
标题:[求助]新手小问题
只看楼主 加入收藏
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
得分:0 
以下是引用穆扬在2006-7-18 18:09:53的发言:

应该把什么值赋给sum只有你知道啊
15楼你不是看懂了么(那个是把A*B的值赋给A)

我的意思是 如何把 最后的结果赋给SUM 这个函数


/priest_ms/58701079/1603639243.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img503.photo./priest_ms/58701079/1603639243.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2006-07-18 22:36
穆扬
Rank: 1
等 级:禁止发言
帖 子:1910
专家分:0
注 册:2006-6-1
收藏
得分:0 
提示: 作者被禁止或删除 内容自动屏蔽

2006-07-18 23:02
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
得分:0 
能不能用前面的知识解答,后面的东西我看不太懂 FOR又是指什么
.....我是刚刚开始学的

[此贴子已经被作者于2006-7-19 9:58:01编辑过]


/priest_ms/58701079/1603639243.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img503.photo./priest_ms/58701079/1603639243.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2006-07-19 09:57
穆扬
Rank: 1
等 级:禁止发言
帖 子:1910
专家分:0
注 册:2006-6-1
收藏
得分:0 
提示: 作者被禁止或删除 内容自动屏蔽

2006-07-19 10:56
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
得分:0 
看懂了,谢谢.
不过我想问一下 FOR的含义是什么?

/priest_ms/58701079/1603639243.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img503.photo./priest_ms/58701079/1603639243.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2006-07-21 14:11
soft_wind
Rank: 3Rank: 3
等 级:新手上路
威 望:8
帖 子:1430
专家分:0
注 册:2006-4-5
收藏
得分:0 
http://61.139.52.111:8090/kj/xiangwei/teach/c/perfect_c/html/lilun/ch06/se0604.htm

这个比较基础.您可以看看,既然您不想查书。

对不礼貌的女生收钱......
2006-07-21 15:46
redstar00
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2006-4-19
收藏
得分:0 
#include<stdio.h>
void main()
{
int i,sum;
sum=0;
for(i=1;i<=5;i++)
{
sum*=i;
}
printf("%d!=%d",i-1,sum);
}
2006-07-21 17:05
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
得分:0 
楼上的好象回答错了

/priest_ms/58701079/1603639243.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img503.photo./priest_ms/58701079/1603639243.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2006-07-21 17:43
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
得分:0 

k%I==0 为这个要2个等号 是不是有什么特殊含义

/priest_ms/58701079/1603639243.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img503.photo./priest_ms/58701079/1603639243.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2006-07-21 18:42
wuyufenjr
Rank: 1
等 级:新手上路
帖 子:62
专家分:0
注 册:2006-7-20
收藏
得分:0 
#include <stdio.h>
main()
{
int a,b;
a=1;b=2;
a*b=a;/*改成a=a*b;*/
b+1=b;/*改成b=b+1;或b++;*/
if(b>5) b=5;
return (b);
printf("THE RESULT is %d\n",b);
}
2006-07-21 21:33
快速回复:[求助]新手小问题
数据加载中...
 
   



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

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