modify test.cpp and add main.c