nbody is a C++ implementation of Barnes-Hut treecode. This program is intended as the replacement for the old FORTRAN version of treecode developed by the author ( v_code ). The algorithm used in nbody and v_code are essntially the same. The main goal in the desing of nbody is to minimize the memory usage.