-
using structures
I am using win me and borland c++ v5.02 starter kit.
My question. I need to write a database for fishing, and want to use a structure for the data, a group of structures for the body of water and a group of body of water structures for the whole thing. I just need help to get started. Could some one point me in the right direction to get started? Any help would be appreciated. Thank you.
-
I'm sorry, but I only have a foggy idea on what exactly you want to do.
Is your game going to be like a fishing game? If so, is it going to be a overhead or like a 3rd person behind-the-back thingy (which if you knew how to program that, something as simple as stuctures wouldn't be hard for you :p). Or is it going to be text based?
And what are you planning to do with these structures?
-
do you mean something like
Code:
struct lakes{
char name[80];
int size, acres, depth;
};
struct lures{
char name[80];
int depth, durability, floatornot;
};
struct poles{
char name[80];
int length, string, reel;
};
etc etc
-
what i am trying to do is a database program, not a game. I hope to use the following for the trip:
struct trip{temp()
bait()
...
}
the following for the lake:
struct lake{ series of trip struct s to be determined by user
when program runnnning}
I am not sure if need to have a total struct for the whole thing.
Once i get it set up, i should be able to get the thing written.
-
>Once i get it set up, i should be able to get the thing written.
That's the trick, isn't it? First, organize the data that you want to include and make sure that it's all there and will do what you want it to. This is before writing any code by the way. Once you have your data organized, place it in logical groups, these will become the data members of each structure. That's how you build structures and logical programs.
-Prelude
-
there was this program that let you set up your program with functions, classes, etc...
-
thanks for the info. and it just hit me like a 2x4 across the head, what i need to do.