The thing is, we are on the section about pointers, but am I forced to use pointers here? I am just confused as to the whole variable/pointer usage, the teacher said we would now always have to use pointers for everything, but what if they are not needed?
Well we have to ask the user to enter the number of fish he wants to enter data for, that is when we have to use a pointer to make a dynamic array. The only reason I am confused is because of what he said, that we should now get used to using many pointers instead of regular variables.
I would enter the rest of the program here but it would be too long I think.
The only reason I am confused is because of what he said, that we should now get used to using many pointers instead of regular variables.
Relax. Pointers are a relic. In modern C++ (the 2011 standard, C++11, which you probably won't learn much about), you are encouraged to use smart pointers such as std::unique_ptr for dynamic memory allocation.
And where you can, you should use references instead of pointers.
And also, any self-respecting C++ programmer will use std::string instead of character arrays char[] and character pointers char*.