SOS!please!

scsd
Last edited on
acasc
Last edited on
Noooooo, it was perfect:

Use meaningful, specific subject headers
The subject header is your golden opportunity to attract qualified experts' attention. Don't waste it on babble like 'Please help me' Don't try to impress us with the depth of your anguish; use the space for a super-concise problem description instead.


Be precise and informative about your problem
•Describe the symptoms of your problem carefully and clearly.
•Describe the environment in which it occurs (machine, OS, application, whatever).
•Describe the research you did to try and understand the problem before you asked the question.
•Describe the diagnostic steps you took to try and pin down the problem yourself before you asked the question.


Don't post homework questions
Programmers are good at spotting homework questions; most of us have done them ourselves. Those questions are for you to work out, so that you will learn from the experience. It is OK to ask for hints, but not for entire solutions.
csacsac
Last edited on
Those questions are for you to work out, so that you will learn from the experience.


Help you? Sure.

Do the work for you? Nope.

What specific problem(s) are you having in your attempt to complete the assignment?
accac
Last edited on
what does 'not have lines slide' mean?
scsds
Last edited on
make a for loop that will contain the upper boundary of 70( 69 if your loop starts counting at 0) in its parameters. This loop will count down the number of lines in your grid.

make a nested for loop inside the outer loop bracketing that will have an upper boundary of 20(19 if loop starts with 0)

inside the bracketing of the nested loop designate the character string to be output to the console, cout it to the screen, followed by a space, followed by the closing bracket of the nested loop.

now you are in the outer loop again, insert a newline command and close the outer loop brackets

here is a starting hint:
1
2
char grid;
int a,b;


EDIT :I wrote this for a single character input, such as '*', be aware of the size of your character string. of your using a 4 letter word such as 'line' without a space you can change the inner for loop boundary to 5 and that will be 20 characters long, if you want the space between the occurances of the word 'line, then change the boundary to 4, that will make the character string 20 characters long, in any event, as long as it is less that the width of the command screen, you wont have any line slide.

Last edited on
hbjbjh
Last edited on
the for loops determine that , look at the boundary designations in the upper post. and also look at the edited text
this is an important question

:::DO you want to input a character string that may run over 20 characters and you dont want to see the end chopped off? whereas if it sufficently under 20 characters so that you can input another instance of the string on the same line until it equals or exceeds 20 characters? :::
scdcscs
Last edited on
ok, well start with the inner loop upper boundary at 4 and keep the space in between, use words at about 5 characters in length , they wont go to a newline if they run over 20 characters , write the code , test it, if it works, great if it doesnt, post it and then we can start working with it, i have to run for a bit, ill be back later, good luck
Topic archived. No new replies allowed.