Update main.cpp

changed (.) operator to -> operator.
added to 23 line, in plan to change the variable and not just a copy of it to be able to recall anytime.