#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 PostYou're not using anything to describe where the functions are coming from. You have included files, but the function references are ignored because (in this case) they are not preceded by a "std::" As your code stands, you will need to add std:: before most of your functions. E.g. std::cout<< …
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 …
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.