COOL PROJECT!!!! (Need a partner or two!)
Moderator: Coders of Rage
- thbp
- Chaos Rift Regular
- Posts: 132
- Joined: Tue Dec 08, 2009 5:32 pm
- Current Project: Learn
- Favorite Gaming Platforms: PC/PS/GC/DC
- Programming Language of Choice: C(++)/Perl
- Location: wrestling matts
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
I MADE THE SAME MISTAKE YESTURDAY ON MY CALCULATOR (wich i'll post if others want me to) GOOD LORD
XNA ========== eXtreme Nuclear Atomic
Wrestlers have three motion: side 2 side , circle, and stalk
Wrestlers have three motion: side 2 side , circle, and stalk
Re: COOL PROJECT!!!! (Need a partner or two!)
You know more c++ then i do!
Well
i just need to know, if you can help, where do i put my xml database and what is the code to access it and run through alll of the defs.
Well
i just need to know, if you can help, where do i put my xml database and what is the code to access it and run through alll of the defs.
- thbp
- Chaos Rift Regular
- Posts: 132
- Joined: Tue Dec 08, 2009 5:32 pm
- Current Project: Learn
- Favorite Gaming Platforms: PC/PS/GC/DC
- Programming Language of Choice: C(++)/Perl
- Location: wrestling matts
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
Umm i don't
just google it man google xml file creation/editing anything really and manipulate it (edit snipt what ever) to make it fit yourse (make sure you leave any copyrites though)
usually i'd leave it in a basic one file or a folder that has the list of the word as the file name then the xml is the dict (subject verb and then def) stuff like that
here
http://www.ibm.com/developerworks/xml/l ... ctlbx.html
http://xerces.apache.org/xerces-c/
http://www.codeguru.com/cpp/data/mfc_da ... php/c4317/
hope these help some (all i could find) wait for someone else to beable to answer more in depht
just google it man google xml file creation/editing anything really and manipulate it (edit snipt what ever) to make it fit yourse (make sure you leave any copyrites though)
usually i'd leave it in a basic one file or a folder that has the list of the word as the file name then the xml is the dict (subject verb and then def) stuff like that
here
http://www.ibm.com/developerworks/xml/l ... ctlbx.html
http://xerces.apache.org/xerces-c/
http://www.codeguru.com/cpp/data/mfc_da ... php/c4317/
hope these help some (all i could find) wait for someone else to beable to answer more in depht
XNA ========== eXtreme Nuclear Atomic
Wrestlers have three motion: side 2 side , circle, and stalk
Wrestlers have three motion: side 2 side , circle, and stalk
- hurstshifter
- ES Beta Backer
- Posts: 713
- Joined: Mon Jun 08, 2009 8:33 pm
- Favorite Gaming Platforms: SNES
- Programming Language of Choice: C/++
- Location: Boston, MA
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
If you are looking to create a dictionary program where you can Search, Add, Delete entries then I would strongly recommend researching how to create a linked list. When I was learning C, the first program I made on the topic of linked lists was a dictionary. Not only will this work for you but it will also teach you a thing or two about structures and pointers. Don't f* around with xml or anything else yet.
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
http://www.thenerdnight.com
- thbp
- Chaos Rift Regular
- Posts: 132
- Joined: Tue Dec 08, 2009 5:32 pm
- Current Project: Learn
- Favorite Gaming Platforms: PC/PS/GC/DC
- Programming Language of Choice: C(++)/Perl
- Location: wrestling matts
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
Why may i ask,,, can one not use xml? why not?
XNA ========== eXtreme Nuclear Atomic
Wrestlers have three motion: side 2 side , circle, and stalk
Wrestlers have three motion: side 2 side , circle, and stalk
Re: COOL PROJECT!!!! (Need a partner or two!)
"Anyone" can use XML. I think hurstshifter is referring to Fallental's coding experience. Since Fallental is a beginner (right?) he/she shouldn't try using some other thing implemented with C++. He/She should focus on learning more advanced C++ topics and using them at his/her disposal.thbp wrote:Why may i ask,,, can one not use xml? why not?
But yeah, linked lists are a great idea for a dictionary. That would make it real easy to add commands like "/next word" or "/previous word".
- hurstshifter
- ES Beta Backer
- Posts: 713
- Joined: Mon Jun 08, 2009 8:33 pm
- Favorite Gaming Platforms: SNES
- Programming Language of Choice: C/++
- Location: Boston, MA
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
ThisXianForce wrote:"Anyone" can use XML. I think hurstshifter is referring to Fallental's coding experience. Since Fallental is a beginner (right?) he/she shouldn't try using some other thing implemented with C++. He/She should focus on learning more advanced C++ topics and using them at his/her disposal.thbp wrote:Why may i ask,,, can one not use xml? why not?
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
http://www.thenerdnight.com
- thbp
- Chaos Rift Regular
- Posts: 132
- Joined: Tue Dec 08, 2009 5:32 pm
- Current Project: Learn
- Favorite Gaming Platforms: PC/PS/GC/DC
- Programming Language of Choice: C(++)/Perl
- Location: wrestling matts
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
oh ok, just wondering i thought maybe there wa something wrong with doing it with xml
XNA ========== eXtreme Nuclear Atomic
Wrestlers have three motion: side 2 side , circle, and stalk
Wrestlers have three motion: side 2 side , circle, and stalk
- Bakkon
- Chaos Rift Junior
- Posts: 384
- Joined: Wed May 20, 2009 2:38 pm
- Programming Language of Choice: C++
- Location: Indiana
Re: COOL PROJECT!!!! (Need a partner or two!)
This thread makes my head hurt.
Re: COOL PROJECT!!!! (Need a partner or two!)
@hurtshifter - Thank you hurtshifter! thanks for the advice
@bakkon - lol i am sorry
@bakkon - lol i am sorry
- Innerscope
- Chaos Rift Junior
- Posts: 200
- Joined: Mon May 04, 2009 5:15 pm
- Current Project: Gridbug
- Favorite Gaming Platforms: NES, SNES
- Programming Language of Choice: Obj-C, C++
- Location: Emeryville, CA
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
Agreed.Bakkon wrote:This thread makes my head hurt.
Also, you might not want to use a linked list for a dictionary because you need fast indexing. An associative array or hash table would work better. Where you would have "keys" and "values" associated with those keys.
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
Website (under construction) : http://www.timcool.me
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: COOL PROJECT!!!! (Need a partner or two!)
Spoken like a true optimist.XianForce wrote:"Anyone" can use XML. I think hurstshifter is referring to Fallental's coding experience. Since Fallental is a beginner (right?) he/she shouldn't try using some other thing implemented with C++. He/She should focus on learning more advanced C++ topics and using them at his/her disposal.thbp wrote:Why may i ask,,, can one not use xml? why not?
But yeah, linked lists are a great idea for a dictionary. That would make it real easy to add commands like "/next word" or "/previous word".
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
Re: COOL PROJECT!!!! (Need a partner or two!)
=p haha.dandymcgee wrote:Spoken like a true optimist.XianForce wrote:"Anyone" can use XML. I think hurstshifter is referring to Fallental's coding experience. Since Fallental is a beginner (right?) he/she shouldn't try using some other thing implemented with C++. He/She should focus on learning more advanced C++ topics and using them at his/her disposal.thbp wrote:Why may i ask,,, can one not use xml? why not?
But yeah, linked lists are a great idea for a dictionary. That would make it real easy to add commands like "/next word" or "/previous word".
- LeonBlade
- Chaos Rift Demigod
- Posts: 1314
- Joined: Thu Jan 22, 2009 12:22 am
- Current Project: Trying to make my first engine in C++ using OGL
- Favorite Gaming Platforms: PS3
- Programming Language of Choice: C++
- Location: Blossvale, NY
Re: COOL PROJECT!!!! (Need a partner or two!)
Start out by making your dictionary with elements inside your code.
Then once you have all that laid out, then start including the ability to read/write to an XML file.
It's obvious you are still very new to C/C++ and probably programming in general, which is fine, but you need to learn to crawl before you can walk.
When you are ready to implement XML into your project, here is how I would do it (however it may not be the best).
You get the idea...
You can parse through each <Word> tag and grab that as an object and get it's <Name> and it's <Definition> tags and store those in the object.
Adapting it to your current library system shouldn't have any real problems what so ever if you know what you're doing.
You would parse through your list of words just as you would before, add definitions and append on to your XML document or remove from your XML document and then re-write back out to the file.
Who knows, maybe my means of implementing this aren't the best?
Either way, you should still take the advice of getting a system going just on it's own before adding in means of saving out and reading a file like an XML file.
Then once you have that done, and somewhat OO for the most part, you will be able to include your Dictionary header file in any project and use it.
I hope this helps... pretty much everyone else on here has already put in some good advice, I just felt the need to comment as well.
I think I'll take a go at creating something like this, I'll let you know if I come up with anything.
Then once you have all that laid out, then start including the ability to read/write to an XML file.
It's obvious you are still very new to C/C++ and probably programming in general, which is fine, but you need to learn to crawl before you can walk.
When you are ready to implement XML into your project, here is how I would do it (however it may not be the best).
Code: Select all
<Dictionary>
<Word>
<Name>noob</Name>
<Definition>Someone who is new to the subject at hand.</Definition>
</Word>
<Word>
<Name>leet</Name>
<Definition>Someone who is very advanced with the subject at hand.</Definition>
</Word>
<Word>
<Name>cake</Name>
<Definition>A delicious desert, which to many, is considered a "lie".</Definition>
</Word>
<Word>
<Name>lie</Name>
<Definition>Something that is not truthful; a false statement.</Definition>
</Word>
</Dictionary>
You can parse through each <Word> tag and grab that as an object and get it's <Name> and it's <Definition> tags and store those in the object.
Adapting it to your current library system shouldn't have any real problems what so ever if you know what you're doing.
You would parse through your list of words just as you would before, add definitions and append on to your XML document or remove from your XML document and then re-write back out to the file.
Who knows, maybe my means of implementing this aren't the best?
Either way, you should still take the advice of getting a system going just on it's own before adding in means of saving out and reading a file like an XML file.
Then once you have that done, and somewhat OO for the most part, you will be able to include your Dictionary header file in any project and use it.
I hope this helps... pretty much everyone else on here has already put in some good advice, I just felt the need to comment as well.
I think I'll take a go at creating something like this, I'll let you know if I come up with anything.
There's no place like ~/
Re: COOL PROJECT!!!! (Need a partner or two!)
well thbp you program like what eunuchs fuck.
there are better ways of doing this.
something like
won, def of won
\tder, def of wonder
\t\tful, def of wonderful
searching becomes uber fast. best way to do this is have 26 binary trees. and bla bla bla.. this is quite well documented in bst data structures.
there are better ways of doing this.
something like
won, def of won
\tder, def of wonder
\t\tful, def of wonderful
searching becomes uber fast. best way to do this is have 26 binary trees. and bla bla bla.. this is quite well documented in bst data structures.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Dad, "Yea well I have a fan belt in street fighting"