1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Computer Science C++ Problem

  1. Jun 17, 2007 #1
    Problem Solved thank you
    Last edited: Jun 17, 2007
  2. jcsd
  3. Jun 17, 2007 #2
    This will just print 4 blanks every line. That is you need to change the test condition and associate it with lineCtrl variable.

    Remember you need 2*lineCtrl-1 X's in each line.
  4. Jun 17, 2007 #3
    doing the 2*lineCtrl-1 send it into an infinite X printing loop.
  5. Jun 17, 2007 #4
    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:
  6. Jun 17, 2007 #5
    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.
  7. Jun 17, 2007 #6
    never mind i figured id it out.

    thank you

    Attached Files:

    Last edited: Jun 17, 2007
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Computer Science Problem Date
Connect 4 C# Jun 20, 2016
Computer Science Discrete Mathematics Proof problem Mar 23, 2013
Computer science nested loop problem Jan 24, 2008
Computer science- calculation/conversion problems. Oct 4, 2006