#include
using namespace std;
#define MAX 20
int main()
{
int num[MAX];
int index;
int more;
int count = 0;
std::cout<< "Enter A num";
std::cin >> num[count];
std::cout << "Enter more NUM(y/n)";
std::cin >> more;
if(more == 'n')
{
break;
}
else
{
count++;
}
for(index =0;index <= count; index++)
{
std::cout << "ELEMENT IN " << (index + 1) << "is" << num[index];
system("PAUSE");
}
cout << endl << "Array Element Used =" << (count + 1) ;
return 0;
}
error illegal break;
can u explain me 1 thing what does the num[index] means especialy the "[ ]" parts thanks.
2006-11-21
14:32:25
·
2 answers
·
asked by
Best Helper
4
in
Computers & Internet
➔ Programming & Design