1 Attachment(s)
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.