COOL PROJECT!!!! (Need a partner or two!)

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
thbp
Chaos Rift Regular
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!)

Post by thbp »

I MADE THE SAME MISTAKE YESTURDAY ON MY CALCULATOR (wich i'll post if others want me to) GOOD LORD
XNA ========== eXtreme Nuclear Atomic
Image
Image
Image
Wrestlers have three motion: side 2 side , circle, and stalk
Fallental
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 43
Joined: Mon Mar 02, 2009 6:13 pm

Re: COOL PROJECT!!!! (Need a partner or two!)

Post by Fallental »

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.
User avatar
thbp
Chaos Rift Regular
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!)

Post by thbp »

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
XNA ========== eXtreme Nuclear Atomic
Image
Image
Image
Wrestlers have three motion: side 2 side , circle, and stalk
User avatar
hurstshifter
ES Beta Backer
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!)

Post by hurstshifter »

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
User avatar
thbp
Chaos Rift Regular
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!)

Post by thbp »

Why may i ask,,, can one not use xml? why not?
XNA ========== eXtreme Nuclear Atomic
Image
Image
Image
Wrestlers have three motion: side 2 side , circle, and stalk
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: COOL PROJECT!!!! (Need a partner or two!)

Post by XianForce »

thbp wrote:Why may i ask,,, can one not use xml? why not?
"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.

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".
User avatar
hurstshifter
ES Beta Backer
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!)

Post by hurstshifter »

XianForce wrote:
thbp wrote:Why may i ask,,, can one not use xml? why not?
"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.
This
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
User avatar
thbp
Chaos Rift Regular
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!)

Post by thbp »

oh ok, just wondering i thought maybe there wa something wrong with doing it with xml
XNA ========== eXtreme Nuclear Atomic
Image
Image
Image
Wrestlers have three motion: side 2 side , circle, and stalk
User avatar
Bakkon
Chaos Rift Junior
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!)

Post by Bakkon »

This thread makes my head hurt.
Fallental
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 43
Joined: Mon Mar 02, 2009 6:13 pm

Re: COOL PROJECT!!!! (Need a partner or two!)

Post by Fallental »

@hurtshifter - Thank you hurtshifter! :) thanks for the advice

@bakkon - lol i am sorry
User avatar
Innerscope
Chaos Rift Junior
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!)

Post by Innerscope »

Bakkon wrote:This thread makes my head hurt.
Agreed.

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
User avatar
dandymcgee
ES Beta Backer
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!)

Post by dandymcgee »

XianForce wrote:
thbp wrote:Why may i ask,,, can one not use xml? why not?
"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.

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".
Spoken like a true optimist. ;)
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: COOL PROJECT!!!! (Need a partner or two!)

Post by XianForce »

dandymcgee wrote:
XianForce wrote:
thbp wrote:Why may i ask,,, can one not use xml? why not?
"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.

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".
Spoken like a true optimist. ;)
=p haha.
User avatar
LeonBlade
Chaos Rift Demigod
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!)

Post by LeonBlade »

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).

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 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.
There's no place like ~/
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: COOL PROJECT!!!! (Need a partner or two!)

Post by avansc »

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.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Post Reply