Original Post
Real simple: I'm creating my High Score List in C++. Upon Initialization it Loads the High Score data, and if it doesn't exist yet, it fills the array with the default data. At the end it dumps the updated list back into the file, thus creating a default score list upon leaving the game the first time.
All I'm trying to do is make the character array of my SCORE struct = a name. Code :
struct SCORE{char name[9]; Uin32 score;}
SCORE gHISCORE[10];
...
// If File Doesn't Exist Yet, Fill List with Default
gHISCORE[ i ].name = "Beatme";
...
I was hoping it would be this simple, but first it gives me errors about not being able to convert the char array lengths, and when I do match up the lengths via "Beatme " it gives me another error about "left operand must be l-value".
GAH, I always hated character array handling, but I suppose I should finally clear up my problems with it. Thanks for any help.
[edit]Added spaces to '[ i ]', board thought I wanted italics[/edit]
[edited by - neonfaktory on October 18, 2003 12:03:57 PM]