I am learning C++ using Stephen Pratas "C++ Primer Plus" (excellent book btw). However i am stuck on exercise 6 chapter 4, where in essence i just have to use new to allocate the array of structures dynamically. I can allocate a single structure dynamically, however i still do not know how to initialise all the members at one time, only each member seperately by using cin e.g. i can only do:
and i do not know how to initialise a whole dynamically allocated structure like i can with a normal 1 e.g. i cant do this:
structure1 object1 =
"Balh blah blah".
Can please someone help. thnx in advance