Ok trying to help a friend out that is in my class. When hey compile they get the following error
Warn : HW4_HEADER.H(15,16):Cannot create pre-compiled header: initialized data in header
The header is as follows (line bolded for the warning)
Code:
#ifndef MYHEADER_H_
#define MYHEADER_H_
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#define password 123
#define bouns_min 50
#define time_add_bouns 451
#ifdef exturnvariable
extern int bonus;
#else
int bonus;
#endif
#define full_time 40
#define per 1.5
enum option {Hourly=1, Salary, Commission, Quit};
void Password_check(int); //funtion prototype
int Init();
option Display_menu();
void Process(option choose);
void Hourly_salary(int, float);
void Hourly_salary(int &,double &);
void Commission_day(int);
double Commission_earn(int);
double Grand_total(double);
void Pattern();
#endif
And yes I realize its pretty fugly but thats how our teacher wants it
It does compile but I hate stupid warnings