Computing.Net > Forums > Programming > General programming help needed.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

General programming help needed.

Reply to Message Icon

Name: alias_neo
Date: October 31, 2007 at 09:22:06 Pacific
OS: Windows Vista x64 Ultimat
CPU/Ram: AMD Athlon X2 4600+, 2x C
Product: Built by Moi.
Comment:

Hi guys, I'm looking to write a program, something i do quite often, but this time i'm going for something special, something quite grand, s to speak, on a larger scale than i would normally do.

In this program I hae several categories of functions to be performed (Programming in C)

For example:

eat, sleep, drink

and in each category i need to have several, infact dozens of functions:

eat->banana
eat->pizza
eat->chocolate
------
sleep->on the floor
sleep->in a bed
sleep->for 7 hours

etc, etc

These are of course just an analogy.

The point is, I'm not quite sure how i should sort these sub categories out programtically, of course i could sort them in the menu in to categories and each menu category would open a sub menu with each of the sub item in (pizza, banana, chocolate.)

Would I need, (optimally) to sort each group of functions into a seperate include file, or somehow group them in another way, or would it be fine to simply write them all out as a list of functions in a seperate include?

I think this kind of thing comes out of experience rather than knowledge, in the past i have had experience only with single functions calling other functions etc but not whole categories of functions. Saying that, it's possible that my functions need not be functions in their own right, but they could be cases in the whole switch thing.

Any input would be appreciated, thanks.

AMD X2 4600+ AM2 ACFrzr64
M2N32-Sli Dlx
2x 1GB Corsair XMS2 DDR2 800
NvGeforce7600GT
Enrmx. Lib. 500W
2x 250GB SATA2 7200 RAID 0
1x 200GB SATA2 7200
Logitech G7 Carbon SE



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: General programming help needed.

c programming help needed www.computing.net/answers/programming/c-programming-help-needed/10441.html

Task automation - help needed www.computing.net/answers/programming/task-automation-help-needed/11183.html

VB programming help needed www.computing.net/answers/programming/vb-programming-help-needed/7718.html