View Full Version : Computer Science C++ Problem
ZincPony
Jun17-07, 01:52 PM
Problem Solved thank you
for (int spaceCtrl = 4; spaceCtrl >=1 ; spaceCtrl--)
This will just print 4 blanks every line. That is you need to change the test condition and associate it with lineCtrl variable.
for (int xCtrl = 1; xCtrl <= lineCtrl; ++xCtrl)
Remember you need 2*lineCtrl-1 X's in each line.
ZincPony
Jun17-07, 02:37 PM
doing the 2*lineCtrl-1 send it into an infinite X printing loop.
Seems to work fine for me. I am not giving you the code just yet. Why don't you post your revised code? And mind your braces :smile:
ZincPony
Jun17-07, 03:29 PM
hey man this is my first C++ class in the summer which means its accelerated. soo he just introduced for loops in wed class soo im trying to create this from it. im stumped. can you give me a lil bit of a bigger clue to go from.
ZincPony
Jun17-07, 04:31 PM
never mind i figured id it out.
thank you
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.