View Single Post
Old 06-28-2005, 01:00 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,712
redhead is on a distinguished road
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
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote