1 Replies - 812 Views - Last Post: 20 January 2010 - 11:24 AM Rate Topic: -----

#1 shockdun  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-January 10

data structure using c

Posted 20 January 2010 - 10:49 AM

In a simple child's game there are three pegs labeled A, B and C on which can be placed uniquely numbered beads. Initially one of the pegs contains ten beads in some random order. The object of the game is to move the beads, one at a time, from the top of one peg to the top of another so that finally all beads finish on one peg in numerical order. A program is to be written to implement this game in which the user is able to type in letter pairs, for example AC, which specifies a move from the bead on top of peg A to the top of peg C. Initially peg A should be loaded with ten beads in random order which should be displayed to the user. The user then types in a sequence of letter pairs to indicate the required bead movement and after each move the content of all pegs should be displayed. Write this complete program implementing appropriate data structures and algorithms.

Is This A Good Question/Topic? 0
  • +

Replies To: data structure using c

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6237
  • View blog
  • Posts: 24,002
  • Joined: 23-August 08

Re: data structure using c

Posted 20 January 2010 - 11:24 AM

We can not give you the entire code to solve your problem. We are here to assist in solving problems with code you have written, with any error messages you are getting or what isn't working the way that you expect it to, we would be more than happy to help you with those problems. If there is a topic that you don't understand we would be more than happy to help you with that as well. Make sure to post any code with in code tags like below.


Be sure to visit our tutorial and snippet areas or read the FAQS at the top of the forums. Also, take a moment to read the rules about posting topics.

Thank you for helping us to help you solve your problem.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1