#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
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.