my C++ code works, but doesn't work, sort of.


Results 1 to 4 of 4

Thread: my C++ code works, but doesn't work, sort of.

Threaded View

  1. #1
    Join Date
    Feb 2001
    Location
    East Central Illinois, USA
    Posts
    523

    my C++ code works, but doesn't work, sort of.

    My C++ class assignment (this is just one of six parts) compiles, builds, and runs. The output is only half correct. Can you help me find the error. I've spent about 8 hours trying to debug this, without success.
    The first array prints out correctly. The second array is supposed to be rotated 90 degrees(the horizontal values become the vertical values, rotated to the right), but all I get is zeros. The error that eludes me is either in the rotateArray function, or the second printArray function.
    Attached Files Attached Files
    If it ain't broke, TWEAK IT

    Registered Linux user # 170078

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •