Hi. I´m new to C++, but I already worked with C, and I´m having some trouble to work with OO together with pointers. The code below is aimed to manage pile it´s compiling but it´s not working. Any help would be deeply appreciated. Thank yoou very much.
You can't have arrays of undefined length (line 13). Either choose a number, use char* and allocate memory of use std::string.
First argument of strcpy is destination (line 19), so you're trying to write on "firstItem" (which by the way is a const char*).
Other than that it seems ok..