Create pat1047.cpp