I have just begun learning c++ and what i have learned online and what i have learned from a book are two different ways to get the same ending product. What exactly is the difference between the two? Since the output is the same is it just preference?
what he said BUT if your just beginning i would use
using namespace std;
because it is simpler, do this until you learn about namespaces an about using the std::
so the second is simplicity, and the first one is for more specific functions that are used by more experienced people.