编的c++,有问题,可以通过检查,不能运算,

[复制链接]
查看11 | 回复1 | 2008-12-14 01:12:19 | 显示全部楼层 |阅读模式
#include
using namespace std;
#define MaxElements 250
#define Sentinel
-1
void GiveInstructions()
{ cout>list[k];

for (int i=1;iMaxElements)
cout >list[k]; for (int i=1;i<k;i++) if (list==list[k]) { cout<<list[k]<<"is already in the array. Please input again...
回复

使用道具 举报

千问 | 2008-12-14 01:12:19 | 显示全部楼层
在for、while、if中最好用花括号把要运行的括起来。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行