版权声明:转载请邮件联系我([email protected]),以取得授权,谢谢! https://blog.csdn.net/yeshennet/article/details/84429166
https://www.bilibili.com/video/av32050101?from=search&seid=11184360984836366468
今天在看候老师的视频,发现C++可以设置启动点。
在电脑上试了一下,发现是对的,感觉还是挺有趣的,整理了下笔记。
tt.c
#include <stdio.h>
#include <stdlib.h>
int test(){printf("test");exit(0);}
int main(){printf("main");}
gcc tt.c -e test
./a.out
# test
gcc tt.c
./a.out
# main