modify main.cpp content