Just a thank you to everybody

I swear, I was starting to think I'd never complete it. Every time I got started to work on the programming, I'd have to go run someone's errand for them, or help them out in some way (transportation, cigarettes, food, whatever). People would not let me work on my program.

yet here I am, two months after starting it, and it's finished and working. I owe a lot of that to all of you fine folks here at cplusplus.com and your tutorials and refference and help on the forums.

The program is a bit of a mess, and I'm sure it could have been done better, probably more effecient, smaller, and faster, but it works. 7 files (counting the main.cpp, three other cpp's and three headers) 1147 Lines, 859 of which are code.

I'm tempted to post it somewhere and ask for help making it better, but since it's not a program I plan to distribute (it's serving a self needed purpose), I'll live with it in it's current state since again it is working.

Thanks again. I greatly appreciated all the help. and I plan to stick around and help when I can, and learn what I can from other people's posts. I've already got an idea for my next project.
Congrat's on finishing. What is it by the way? Just curious.
well.. the task I had at hand was..

There is this game I play, called EverQuest. In this game there are tradeskills, which are done by putting multiple items into different tradeskill contianers and hitting combine to make new items. The tradeskill i was interested in is spell research, which makes spells that are otherwise very difficult to obtain.

Now, the recipe's for the spells are available on a couple web sites, but I wanted a set of recipe's printed out in a word document. So I needed to scribe these recipe's into word. There are, however, over 900 different recipe's and the chance of mistyping an ingredient was far too great.

So, this program contains lists for the different kinds of ingredients needed, that I can add to and re-use. By saving the id numbers for ingredients into the recipe classes, then exchanging those id's for the name at time of printing to a txt file, I can easily add recipe's without mistyping an ingredient's name.

I woudln't mind sharing the code, but as the previous post suggests there are a lot of lines between all 7 files. More than I'd want to post here, so if there's another place where I can share them easier and link to here, that would be great. Then I could get proper critique on the actual code, from experienced programmers.

edit: just googled terms like "share" "c++" "code" looking to see if there was a site similar to editgrid only for source code, but I don't find any. ah well.
Last edited on
Ah okay.

Google Docs maybe?

Edit: It does keep spacing and I just copy and pasted 145 pages (doesn't tell you lines in word count). It lagged for a second but it works. Try that if you like.
Last edited on
well, since i do have an account at google anyway (google mail, etc..) I went ahead and used google docs. It did take some editing. as while it keeps spacing, it doesn't like blank lines. so I had to add two spaces to each blank line.

I also don't like how it isn't syntatically highlighted, but if you copy/paste to your c++ editor, i'm sure you'll get all the highlighting you need.

They are uploaded, i'm still trying to figgure out how to share them with everybody, or what url to give to give access to them. As soon as I get that info, i'll edit with it.

Edit: Ok, got them published. Links are as follows:
main.cpp http://docs.google.com/Doc?id=dcvkwfgt_7dw6nxsnz
I_List.h http://docs.google.com/Doc?id=dcvkwfgt_0fn9x7cmh
I_List.cpp http://docs.google.com/Doc?id=dcvkwfgt_1gm9vdffb
getid.h http://docs.google.com/Doc?id=dcvkwfgt_2w46dt8df
getid.cpp http://docs.google.com/Doc?id=dcvkwfgt_3hfrj27c4
RList.h http://docs.google.com/Doc?id=dcvkwfgt_5gb7bv4dk
RList.cpp http://docs.google.com/Doc?id=dcvkwfgt_6scx9wpdw

Oh yea.. and here's an example of the output
Spells.txt http://docs.google.com/Doc?id=dcvkwfgt_8gr48kwct
Last edited on
yea, i know.. it's a mess.. I'm kinda proud of how the I_List came out, and the main is not bad..

the RList really isn't using c++ functionality like it could have or should have. it was more or less just thrown together.

And the getid files.. well.. that's a unique way of tackling it..

I'm thinking i could have done better by making one list of ingredients, and adding a 'type' enum to the struct. then the recipe could have used one vector instead of all of the different variables..

I'm also thinking if I were to re-do it, I would make an object to handle all input, returning a struct with a token signifying if return type is numeric, or string text, or one of several tokens (cancel, list, edit, add, etc..)

Several things I know I would do differently if i were to re-do it. but currious if there are any other things you may notice that I havn't mentioned? anything that could make it better?
Topic archived. No new replies allowed.