Use new to allocate memory for a class pointer : object pointer « Class « C++ Tutorial.
www.java2s.com