#include <fstream>
#include <iostream>
#include <iomanip>
int main()
{
int index;
int counter=0;
double comparison_variable;
float numbers;
double array_numbers[10]; // an array with 10 floating points
for(index=0; index < 10; index++)
{
cout <<"enter array_numbers"<< (index +1)<<":" ; ERROR: undeclared (first use this function
cin >>array_numbers[index];
if(index > 0)
{
if(numbers(index)> numbers(0))
{
counter = counter +1
}
}} cout <<"counter =" << counter <<endl;
system("PAUSE");
return 0;
}
sisterjo 0 Newbie Poster
Recommended Answers
Jump to PostSo why don't you comply with all those valuable piece of advice you have got in your 2-day-old former thread?
If you had only compared above program with that one posted in your former thread, you would have already spotted the principal mistake. Then you were ready to …
Jump to Postfloat numbers; | ? | V numbers(index)> numbers(0) ?? Do you mean: array_numbers[index] ?
Of course, USE CODE TAGS !
-- tesu
All 5 Replies
Dennis M. 0 Newbie Poster
tesuji 135 Master Poster
sisterjo 0 Newbie Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
tesuji 135 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.