View Single Post
Old Jul 6th, 2007, 8:12 AM   #14
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Well, in the first place, a duplicate of your code, running in NetBeans, does not produce what you show in your post. It produces this:
Value    Square     Cube
  1         1          1
  2         4          8
  3         9          27
  4         16          64
  5         25          125

It produces the same thing if run from the command line:

Now, if you look at that, you'll see that there are two spaces before the first column, 9 spaces between the first and second columns, and 10 spaces between the second and third columns. That's what your software is asking for, that's what you're getting.

You've asked someone to explain a phenomenon that isn't occurring. GIGO.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote