I am quite new to C++ and was hoping someone could help me with the following problem.
I seem to be getting an error message when I try and insert the word "Mocha" as a value into the first member of the array which consists of 3 structures entitled "CandyBar".
The string class does make life easier. In case you must use character arrays ( an assignment requirement perhaps) then you need a special function which copies characters from one array to another. Replace line 17 with: strcpy(pointer[0].name, "Mocha");