Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RE: Set ComboBox Values ? Pin
Aoife6-May-02 4:14
Aoife6-May-02 4:14 
GeneralRe: RE: Set ComboBox Values ? Pin
Sonu Kapoor6-May-02 5:51
Sonu Kapoor6-May-02 5:51 
GeneralMessenger type app in VC++ Pin
unknown soldier5-May-02 21:56
unknown soldier5-May-02 21:56 
Generalunable to execute database apps Pin
Bhikshapathi Gorantla5-May-02 21:37
Bhikshapathi Gorantla5-May-02 21:37 
GeneralSDI in Dll Pin
5-May-02 18:55
suss5-May-02 18:55 
QuestionHelp with _lfind? Pin
Learning5-May-02 17:47
Learning5-May-02 17:47 
AnswerRe: Help with _lfind? Pin
James R. Twine6-May-02 3:02
James R. Twine6-May-02 3:02 
Generalusing your own header in a cpp. Pin
SilverShalkin5-May-02 17:04
SilverShalkin5-May-02 17:04 
ok... "yes, this is a game" last one i prgrammed, though, wasnt a game "im just trying to learn Smile | :)

ive made a header file and called it drpgf.h for data rpg files.header

this is some of my code:
_____________________________________
struct Counters
{
char cname[100] //counters name
int chp // counters hit points
};
void Monsters()
{
Counters goblin =
{"goblin", //cname
25 // chp
};
}//end Monsters
____________________________________

now in my cpp file... how would i recall the info that i made in my header...

i want to do somthing like this:
_____________________________________

Monster()
cout << goblin.cname[100] << endl;

but it says that goblin doesnt exist...

i would post all my code,... but CP mutilates it Frown | :(

please help...
Thanks!
~SilverShalkin

ps... i guess i could check the "display this message as is (no HTML)

if you guys need more info.. ill just do that Smile | :)

Rose | [Rose]
GeneralRe: using your own header in a cpp. Pin
Christian Graus5-May-02 17:31
protectorChristian Graus5-May-02 17:31 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt5-May-02 19:32
mentorPaul M Watt5-May-02 19:32 
GeneralRe: using your own header in a cpp. Pin
SilverShalkin6-May-02 11:59
SilverShalkin6-May-02 11:59 
GeneralRe: using your own header in a cpp. Pin
Christian Graus6-May-02 12:21
protectorChristian Graus6-May-02 12:21 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 13:15
mentorPaul M Watt6-May-02 13:15 
GeneralRe: using your own header in a cpp. Pin
Christian Graus6-May-02 13:39
protectorChristian Graus6-May-02 13:39 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 14:03
mentorPaul M Watt6-May-02 14:03 
GeneralRe: using your own header in a cpp. Pin
Christian Graus6-May-02 14:47
protectorChristian Graus6-May-02 14:47 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 16:07
mentorPaul M Watt6-May-02 16:07 
GeneralRead this. Pin
SilverShalkin6-May-02 15:21
SilverShalkin6-May-02 15:21 
GeneralRe: Read this. Pin
Christian Graus6-May-02 16:21
protectorChristian Graus6-May-02 16:21 
GeneralRe: Read this. Pin
SilverShalkin7-May-02 3:05
SilverShalkin7-May-02 3:05 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 12:48
mentorPaul M Watt6-May-02 12:48 
GeneralHelp with NetStatisticsGet Pin
Lac5-May-02 16:53
Lac5-May-02 16:53 
GeneralDebugging - mem allocation Pin
Coremn5-May-02 16:46
Coremn5-May-02 16:46 
GeneralRe: Debugging - mem allocation Pin
Ganesh Ramaswamy5-May-02 22:10
Ganesh Ramaswamy5-May-02 22:10 
QuestionCHString? In SDK? Pin
Nish Nishant5-May-02 15:21
sitebuilderNish Nishant5-May-02 15:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.