We all know that in the Swift language which is no longer the main function,You may understand C language or Java language students arrived at this point of deep discomfort。In short,Instead main.swift。
|
1 2 3 4 |
int main(int argc, const charchar * argv[]) { printf("Hello, World!\n"); return 0; } |
Swift language in which,The compiler does not go looking for main function as a program entry,But this "main.swift" file,According to the official explanation view,This one[……]