Well I got what I wanted now, but it still is getting errors after I run the program.Code:#include <string> #include <iostream> class Particle_A { public: void AddParticle( char* Buffer, char* Particle ) { this->m_Buffer = Buffer; this->m_Particle = Particle; if ( this->m_Particle ) { strcpy( this->m_Buffer, this->m_Particle ); } } private: char* m_Buffer; char* m_Particle; }; int main () { char Buffer[] = ""; char* Particle; Particle = "Whats up"; Particle_A p; p.AddParticle( Buffer, Particle ); std::cout << Buffer << std:: endl; }