It does not make any sense to add " to a string containing a path - it will become invalid path! Because " is not allowed in paths.
If you want the path to be enclosed in " if you print it out then do:

cout << '"' << total << '"' <<endl;

This one I don't understand:

I cannot introduce introduce a string in the middle of a program line. Isnt'it ?