First off, this code looks to be C++, yet the include statements are using C-style. In order to accomodate C++ -style, you would discard the
.h on teh included standard headers, and in some cases add a
c to the beginning like:
Code:
// C-style
#include <string.h>
// C++ -style
#include <string>
// C-style
#include <time.h>
// C++ -style
#include <ctime>
Also you need to tell what namespace you're using like:
Code:
using namespace std;
Second, have you tried adding:
Code:
#include <iostream.h>
#include <conio.h>
to your
functies.h
Third, given the fact, that you're using a header file to declare the actual function code, might confuse your compiler, so you might want to try adding a
; at the end of your functies.h like:
Code:
....
gotoxy(80,i);
cout << "*";
}
};
Since I've never personaly used Borland, I can't say why it is acting this way.. Some compilers complain when your dont create a project to hold the files, when your using seperate files.. Perhaps that is the problem here too..
Else I can't say why it would come with an error like that.. Given that there isn't even a reference to a line in your code.
Last(ly). Since you're using
conio.h with the reference to
gotoxy(), your code isn't ISO/ANSI, so you might wound up with us giving advises that isn't conforming to your specific compiler