I have a Header file, a implementation file with all the functions, and a main file. when I compile the implementation file, its fine. But when I compile the main file, it says ONE of my functions undeclared (first use of this function).
It doesn't happen for any of my other functions...why this one? Heres the situation:
Lets say my header file has a Class Poo, that has all its own functions. as a public member function we have
void read (Poo [], int);
Then in the implementation file we have:
void Poo::read(Poo array[],int size)
{
//code
}
Then in the main file, it includes "Poo.h"
and it calls the function by saying
Poo array[num];
read(array, num);
why is it saying 'read' undeclared (first use this function)?
2007-08-06
18:36:04
·
4 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
even after i wrote void Poo::read(Poo[],int);
it still gave me that read was undeclared
2007-08-06
18:51:29 ·
update #1