View Single Post
Old 06-28-2005, 08:09 AM   #1 (permalink)
Nielszz
Nielszzz
 
Nielszz's Avatar
 
Join Date: Apr 2005
Location: Holland!!
Posts: 13
Nielszz is on a distinguished road
warning cannot create pre compiled header: initialized data in header

warning cannot create pre compiled header: initialized data in header

i get this header when i comple my cpp in borland
this are my codes

my main.cpp
Code:
#include <iostream.h>
#include <conio.h>
#include "functies.h"

void main()
{
	cout << "Druk op <Enter> om het spel te starten." << endl;

   speelveld();

	getch();
}
my header (functies.h)
Code:
int i = 0;

void speelveld(void)
{
	gotoxy(1,1);

 		for(i = 1 ; i <= 80 ; i++ )
 		{
 			cout << "*";
 		}

 		for(i = 1 ; i <= 24 ; i++ )
 		{
			gotoxy(1,i);
			cout << "*";
		}

	gotoxy(1,24);

 		for(i = 1 ; i <= 80 ; i++ )
 		{
 			cout << "*";
 		}

   gotoxy(24, 1);

   	for (i = 1 ; i <= 24 ; i++)
      {
      gotoxy(80,i);
      cout << "*";
      }
}
i am very stuck please help
thx already

Last edited by redhead; 06-28-2005 at 12:42 PM. Reason: Added [code][/code] tags
Nielszz is offline   Reply With Quote