473,412 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

hi guys i got question and i need help

1
i got assiment in c++ and its about finding the answer for mase
for example like this one


***-*
*----*
*-***
*-***

the answer ganna be

down
down
left
left
down
down

and what i need to know that what i'm suppose to use to let the program look for the free place " the dash" ??
Nov 29 '09 #1
1 1231
newb16
687 512MB
if (inputLine[i] == '-') field.setItem(i,y, EMPTY) else field.setItem(i,y,USED);

or something line this - i.e. first convert from input format to internal representation. Then google for 'lee algorihtm'
Nov 29 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tony Vasquez | last post by:
First off, I am coding soley for IE 5.5+ right now. I am going to try to later add code for other support of other browsers, but I doubt it will ever support more than a few. The site is up at...
7
by: Snake | last post by:
Hi guys, I have question about classes. when u create class called Test. and you define variable Test c; so does this act like( a variable c of type Test pointing to an abject )? The thing that...
13
by: Joe Black | last post by:
Just to inform you guys that i have only like 2 weeks that i took my first classes in c++, and my proffesor now is asking me to solve this problem: /// Using a function create a Win32 Console...
92
by: Jeffrey P via AccessMonster.com | last post by:
Our IT guys are on a vendetta against MS Access (and Lotus Notes but they've won that fight). What I can't understand is, what's the problem? Why does IT hate MS Access so much. I have tried...
3
by: nish | last post by:
I am currently studying java and i came across a question. The following program has several defects (errors) that will generate compile-time errors, logical errors (unintended behaviour) or...
1
gammyfeet
by: gammyfeet | last post by:
Hi guys, and girls, I fairly new to scripting and kind of understand it, I usualy find scripts and change them to my needs but sometimes I get stuck so it's good to find a place to find/share...
1
by: skygenn | last post by:
hi guys im new at c++ program and im 1st year taking up I.T our prof in c++ gave us an assignments but she didnt even explain us how to begin doing it? honestly i have no idea how to begin it...
1
by: maheswaran | last post by:
Hi guys, I have a big deal to all php guys. May be it is to prove our talents. I need a dreamweaver functionality in my webpage. That means user can create a design in website. Too clearlly, If...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.