help me out Unrgent wit a cross word program

This is a discussion on help me out Unrgent wit a cross word program within the C Programming forums, part of the General Programming Boards category; Hi all!! i m doing a dummy project ...pls help me out in it given an MxN filled up cross ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    2

    help me out Unrgent wit a cross word program

    Hi all!!

    i m doing a dummy project ...pls help me out in it

    given an MxN filled up cross word,write a prog to print all the words present in it.
    Cross word table is given as input in a text file that contains ‘0’ for a shaded square and any other valid alphabet [A-Z] for any other position. Each row is a line of text input. A word has to be at least 2 letters long. The program has to read in the input file, and then print out all the words present.
    The program has to print the output in the following format :

    < i j > : < word > : < across / down >
    eg output: <1,6>:Republic:Across
    <2,3>:Independence:down

    pls do help me out with this...

    thx in advance
    Last edited by rags; 05-13-2008 at 10:51 AM. Reason: a typing mistake

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,639
    You mean this?

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    Presumably because none of the answers over there make any kind of sense.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    2
    input frm a file :

    00000CONGRESS0000
    000000000000I00000
    000000000000X00000

    SO so nw d output shud b :
    <1,6>:CONGRESS:ACROSS
    <1,12>:SIX: DOWN
    Last edited by rags; 05-14-2008 at 10:48 AM. Reason: typing mistake

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    > if u cn rd ths u shd rd teh faq
    http://www.catb.org/~esr/faqs/smart-...html#writewell
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 02:30 PM
  3. Replies: 10
    Last Post: 11-18-2008, 10:52 PM
  4. Word Counting Program Help
    By rdave1 in forum C++ Programming
    Replies: 1
    Last Post: 09-14-2005, 04:30 PM
  5. funky little program - word to morse converter!
    By Brian in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-18-2002, 03:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21