标题:不用调试,妮知道答案嘛?
取消只看楼主
jxry8888
Rank: 1
等 级:新手上路
帖 子:97
专家分:0
注 册:2006-8-13
 问题点数:0 回复次数:1 
不用调试,妮知道答案嘛?

#include <iostream>
using namespace std;
const int SIZE = 6;
int main(void)
{
cout<<"yi da duan fei hua:";
float temp;
int i=1,array[SIZE];
cin>>temp;
while( i <= 6 && temp >= 0)
{
array[i]=temp;
cout<<"a["<< i++ <<"]="<<temp<<endl;
cin>>temp;
}
return 0;
}

搜索更多相关主题的帖子: 调试 
2006-09-18 20:55
jxry8888
Rank: 1
等 级:新手上路
帖 子:97
专家分:0
注 册:2006-8-13
得分:0 

怎么没有人回答的对呀?
提示一下你输入最后一个数字的时候会发现什么现象,
还有你究竟能输入多少个数字 !


2006-09-20 15:50



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-91083-1-1.html




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

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