C++ Link multiple Classes together. Create an Array of objects to access sequentially -
directly bellow partially completed function should when completed allow me place each of 5 battleships down on board. issue i'm having i want access shipname stored in ship.cpp , want associate shipname player . example can have player1 , player2 each have 5 ships associated them , run placement loop each of them.i believe that's called instantiating object. admit i'll have have read on that! secondly have have sort of array stores each of ships , loops through each time? first pass cruiser, second pass destroyer etc. more string array have pointer reference, player.shipname pointer array or that? i've included game.h, player.h , ships.h @ bottom reference. thanks in advance , help! void game::manualplaceship() { // start loop int currentshipsdeployed = 0; int z = 0; int = 0; while (currentshipsdeployed < 5){ cout << "please enter co-ordinates place your" << /**player.shipname**/ "shipname"<< /**player