Alright...I searched the boards...and thought I had found what i was looking for...but it didnt quite work...so i tried this...and tried that...still no luck...
All i want is to be able to define all of the variables in the structure under many different names...this is a somewhat simplified version of the code...but if someone could help I would greatly appreciate it...Code://Pracitce Game //PracGame2.cpp #include<iostream> #include<windows.h> #include<string> #include<stdlib.h>//rand() #include<fstream>//file i/o #include<basicf.h>//for clrscr(); #include<color.h>//for color definition #include<time.h>//for time #include"GMS.h"//for struct define... using namespace std; int main() { cout<<e1->PEN_NME<<endl; return 0; } ////////////////////////////GMS.h////////////////////// //resource... //GMS.h #include<iostream> #include<windows.h> using namespace std; struct Enemy { int MX_ATT;//max attack int MN_ATT;//min attack int MX_DEF;//max defense int MN_DEF;//min defense int MX_HP;//max hp int MN_HP;//min hp int T_TRN;//total turns int R_TRN;//remaining turns char *PEN_NME;//enemy name }; Enemy Elias; Enemy *e1; Elias.PEN_NME=("Elias of Lithel"); e1=&Elias;