main函数
2015-12-15 22:23
489 查看
// // main.c #include <stdio.h> int main(int argc, const char * argv[]) { //mian是函数的名称,是系统规定的名字,系统启动程序就会调用名字叫做main的函数 //main函数只能由系统调用,不能手动调用 //argc:系统传递进来的参数个数,默认是1 //argv:系统传递进来的参数实际的值,默认是程序的名称 printf("argc=%i\n",argc); //argc=1 printf("argv=%s\n",argv[0]); //argv=/Users/zhangsan/Library/Developer/Xcode/DerivedData/C语言学习-fdcvrdzbjkrjxiazrhsayzccxccv/Build/Products/Debug/C语言学习 //return 结束函数 //0:代表程序正常结束;如果返回其他值代表程序非正常结束 return 0; }
相关文章推荐
- 评估预测函数(3)---Model selection(选择多项式的次数) and Train/validation/test sets
- AHCI: Failed to attach drive to Port1 (VERR_GENERAL_FAILURE).
- AHCI: Failed to attach drive to Port1 (VERR_GENERAL_FAILURE).
- Fail-Fast机制
- [C/C++][经典探讨]类继承中,通过基类指针delete释放,是否会造成内存泄漏 http://blog.csdn.net/code_godfather/article/details/66480
- CodeForces 605A Sorting Railway Cars
- 关于通过不含虚析构函数的基类类型的指针删除派生类对象的问题 http://blog.csdn.net/unituniverse2/article/details/12302139
- C++学习-多继承和虚基类(11) http://blog.csdn.net/gzshun/article/details/7300458
- ubuntu下使用source insight http://blog.csdn.net/luobin1984/article/details/8140712
- 7-3 UVA 10976 Fractions Again?!分数拆分
- 分布式系统中failover相关测试要点
- 【签名之坑】Decmail.GetBits()
- [转]分享AI寻径设计的射线追踪法
- zzulioj 1842: LT的求助again and again (简单模拟)
- Word Press提示Fail to connect FTP server
- 银联IC卡卡片规范-AID应用标识符
- 使用red5-1.0.6出现的异常情况 Interrupted while waiting for write lock
- How to solve KTag failed to read EDC16C35
- 如何在PS,AI上直接使用FONTAWESOME图标?
- 为什么pthread_cond_wait需要传递mutex参数