why these errors occured .. guide me please . thnak you in advance
CODE:
#include <iostream.h>
#include "CList.cpp"
main(int argc , char *argv[])
{
CList list;
int i, N=10 , M=3;
for(i=1 ; i<=N ; i++) list.add(i);
list.start();
while (list.length()>1){
for(i=1 ; i<=M ; i++)list.next();
cout<<"remove:"<<list.get()<<endl;
list.remove();
}
cout<<"leader is:"<<list.get()<<endl;
}
ERRORS:
CList.cpp: No such file or directory
In function `int main(int, char**)':
`CList' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
expected `;' before "list"
`list' undeclared (first use this function)