. But I don’t know why the new project always begins with the myFunction(int, int) in the main.cpp. ( My PlatformIO version is 3.4.4 ) I see the other training video does not have this. Can I close this setting? Thank your help for this.
This is just to train you to use .cpp syntax properly. Without line 4, the code would not be a compilable .cpp file, but people coming from the Arduino IDE (which uses .ino syntax) never write such a line. See also FAQ.
Of course, line 3-4, 8 and 15-18 can be deleted with no issues.