GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-May-2004, 16:09
small_ticket small_ticket is offline
Junior Member
 
Join Date: May 2004
Posts: 45
small_ticket is on a distinguished road
Question

word finder (there are problems)


hi everyone! i have some piece of code in the attachment i don't really know where the errors occur but i guess that they are happening in the functions that are defined this is what the code tries to do
The "find the words" type puzzle, usually seen in newspapers is as follows: There is
a list of given words, and a two-dimensional matrix of letters. The goal is to find the
words in the matrix of letters, which can be placed vertically, horizontally or diagonally,
and the words may intersect.
Here is an example:
Word List:
EARTH
MOON
JUPITER
SUN
MERCURY
VENUS
MARS
H D J E U F I K D J
I E B N C U M P A L
K D A O W U E J S A
K D J R U W R H G S
S O P E T E C Y H U
U R W S T H U C D A
N P O I N L R N J M
E Z P D O R Y G E K
V U S S O E F D I V
J D S W M P S R A M
K I L F M B A C I K
For example, "EARTH" starts at position (2, 2) from the upper left, and continues
to the southeast. Similarly, "MOON" starts at position (5, 9) from the upper left, and
continues to the north. We will denote these as (2, 2)SE and (5, 9)N, respectively.
if you can help i would be very thankful to you!! see you then have a nice day
Attached Files
File Type: txt wordfinder.txt (13.5 KB, 31 views)
 
 

Recent GIDBlogStupid Management Policies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chaintech Geforce 5600 FX problems bartster74 Computer Hardware Forum 8 04-May-2004 14:16
Apache - problems using PHP outside the intranet ooandioo Apache Web Server Forum 6 04-Feb-2004 10:27
Installation problems arman Apache Web Server Forum 3 03-Feb-2004 13:02
coding a word with a givin factor funnyf C++ Forum 2 13-Jan-2004 09:32

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:34.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.