码迷,mamicode.com
首页 > 其他好文 > 详细

颤抖吧:clang中文编程,真正不可维护的代码!!

时间:2015-04-10 01:25:51      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

#include <stdlib.h>                                                                                                                                                                                                                         
#include <stdio.h>                                                                                                                                                                                                                          
                                                                                                                                                                                                                                            
void 操(const char *人名)                                                                                                                                                                                                                   
{                                                                                                                                                                                                                                           
    printf("%s() : %s\n" , __FUNCTION__ , 人名);                                                                                                                                                                                            
}                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                            
int main(int argc , char *argv[])                                                                                                                                                                                                           
{                                                                                                                                                                                                                                           
    const char *你大爷="你大爷是猪";                                                                                                                                                                                                              
    操(你大爷);                                                                                                                                                                                                                             
                                                                                                                                                                                                                                            
    return 0;                                                                                                                                                                                                                               
}
# clang -O2 操.c -o 操
# ./操
# 操() : 你大爷是猪


颤抖吧:clang中文编程,真正不可维护的代码!!

标签:

原文地址:http://my.oschina.net/cytan/blog/398323

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!