Don't use C-style arrays. Use the STL container called array instead.

http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/print.php/c15257