Hi, I'm a begginer programmer and am writing a practice program to play around with classes and header files and such. When I get this working I want to try adding pointers and such to start practicing that stuff.
For now, I am confused on why my "arrange" class functions are not recognizing the <iostream> header. When I try to compile this I get the following errors.
Well the problem you're asking about is caused by you not being in std namespace (I can't believe how often this question gets asked here!)
Either do std::cout and std::endl, or put usingnamespace std; in functions which use them, or at the top of your cpp file if several functions use them.
Another problem here is that you're giving the same functions multiple bodies, which will cause linking errors (the linker won't know which function to use). Functions can only have 1 body.
You also have 'up' and 'down' functions in pointerpractics.cpp, but those functions aren't part of the arrange class (not in arrange.h)