nested loop

print a pyramid?????
up and also in down ??????
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.
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;
"...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++?


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.
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
I don't understand what you mean. I have one account on this site.
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?
I dont know how the site is displaying info but im and honey are not the same person.
Ok, enough about that then. Do you have any questions regarding the code you made? because it compiles and runs on my PC.
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.