Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 16th, 2008, 05:10 PM
Registered User
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default help for c programmig

Hi all

I am a freshman in c programming and i want to write a program for slider puzzle. i don't know exactly what to do , but i know i should declare a multidimensional array [4][4] in my program, but i don't know what is the format of function "move" , and i don't know how to use it. can anyone help?
thanks
Reply With Quote
  #2 (permalink)  
Old December 17th, 2008, 10:22 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

You MUST have more than that decided upon.

What do you put *INTO* the arrray upon program start??

How will you allow the user to request a given move??

How do you ensure that the puzzle has a solution? (Exactly half of all starting configurations do not, as I recall.)
Reply With Quote
The Following User Says Thank You to Old Pedant For This Useful Post:
code_lover (February 16th, 2009)









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.