Homework1 mistakes correction

added #pragma once
corrected a typo
fixed string pass by value issue