在文件中加入编译时间

来源:互联网 发布:linux服务器安全防护 编辑:程序博客网 时间:2024/05/12 10:43
   加入编译时间和日期,文件和行号
   printf("The   compiled   date   is   %s,   time   is   %s   /n",   __DATE__,   __TIME__);   
   printf("The   current   line   is   %d   in   the   file   %s   /n",   __LINE__,   __FILE__);   
 
原创粉丝点击