modify main.cpp
add string io to main.cpp