I am trying to learn c++ and am following this online book and although mostly good, sometimes I feel things aren't explained that well.
On page 163, when talking about linked lists, he shows this code:
p_enemies = EnemySpaceShip* addNewEnemyToList( p_enemies );
It isn't completely filled in with context, but I believe p_enemies would be a declared pointer, and addNewenemyToList would be a defined function. What I am wondering is how the expression would work, and is this proper code. It doesn't make sense to me because it looks like a method declaration, having the return type right there, but it is there after an assignment. What is this?