nested loop

Jan 23, 2011 at 4:51pm
print a pyramid?????
up and also in down ??????
Jan 23, 2011 at 5:32pm
search some clue from 'Reference' first, then do it yourself.

if you found any difficulty, then post your code here and ask the experts.

this forum is not made for people to get the answer of their school assignments.
Jan 23, 2011 at 5:55pm
This is what i came up with .
http://www.cplusplus.com/forum/beginner/34743/

just replace this line
1
2
nColumnSize = nRow <= nCenter ? nRow + nCenter : nColumnSize - (nCenter / nCenter);

with
 
	nColumnSize = nRow <= nCenter ? nRow + nCenter : nColumnSize - 1;
Jan 23, 2011 at 6:05pm
"...and the Four Horsemen of the Apocalypse are comin' to see me today, and they're not bringing flowers which... just makes it real difficult to get organized."


The above statement makes more sense then what little you have provided us to help you with. This formula above looks like it will work but it is useless without the rest of your code. At least give us the entire function that this is intended to be a part of. Also what is your experiance level with C++?
Jan 23, 2011 at 6:08pm


The above statement makes more sense then what little you have provided us to help you with. This formula above looks like it will work but it is useless without the rest of your code. At least give us the entire function that this is intended to be a part of. Also what is your experiance level with C++?


i provided a link.
Jan 23, 2011 at 6:11pm
Huh? Did you post this in the wrong thread? or do you have multipule accounts?

So it's solved then? Ok, I'm glad we could help... I think...
Last edited on Jan 23, 2011 at 6:11pm
Jan 23, 2011 at 6:14pm
I don't understand what you mean. I have one account on this site.
Jan 23, 2011 at 6:58pm
The OP's name is diplaying as honey24 on my PC. I doubt that's a DB error on part of the site. but anyway it looks like you have your answer so do you have any questions about the code you used?
Jan 23, 2011 at 7:12pm
I dont know how the site is displaying info but im and honey are not the same person.
Jan 23, 2011 at 7:26pm
Ok, enough about that then. Do you have any questions regarding the code you made? because it compiles and runs on my PC.
Jan 23, 2011 at 7:45pm
When i posted the code i was looking for critique and suggestions from the board how i approached the problem and if and how any one would have done things differently. When i saw a thread today that someone needed assistance in regards to pyramid i just directed them to that link , thats all.
Topic archived. No new replies allowed.