佛祖保佑模板

 1 //                                                          _ooOoo_
 2 //                                                         o8888888o
 3 //                                                         88" . "88
 4 //                                                         (| -_- |)
 5 //                                                          O\ = /O
 6 //                                                      ____/`---'\____
 7 //                                                    .   ' \\| |// `.
 8 //                                                     / \\||| : |||// \
 9 //                                                   / _||||| -:- |||||- \
10 //                                                     | | \\\ - /// | |
11 //                                                   | \_| ''\---/'' | |
12 //                                                    \ .-\__ `-` ___/-. /
13 //                                                 ___`. .' /--.--\ `. . __
14 //                                              ."" '< `.___\_<|>_/___.' >'"".
15 //                                             | | : `- \`.;`\ _ /`;.`/ - ` : | |
16 //                                               \ \ `-. \_ __\ /__ _/ .-` / /
17 //                                       ======`-.____`-.___\_____/___.-`____.-'======
18 //                                                          `=---='
19 //
20 //                                       .............................................
21 //                                              佛祖保佑             永无BUG
22 //                                      佛曰:
23 //                                              写字楼里写字间,写字间里程序员;
24 //                                              程序人员写程序,又拿程序换酒钱。
25 //                                              酒醒只在网上坐,酒醉还来网下眠;
26 //                                              酒醉酒醒日复日,网上网下年复年。
27 //                                              但愿老死电脑间,不愿鞠躬老板前;
28 //                                              奔驰宝马贵者趣,公交自行程序员。
29 //                                              别人笑我忒疯癫,我笑自己命太贱;
30 //                                              不见满街漂亮妹,哪个归得程序员?
31 
32 #include <stdio.h>
33 #include <string.h>
34 void PrintCenterAlign(char *pStr, int Len)
35 {
36     int lSpaceNum = (Len - strlen(pStr)) / 2;
37 
38     printf("%*s\n", lSpaceNum + strlen(pStr), pStr);
39 }
40 
41 void PrintGodBless(void)
42 {
43     PrintCenterAlign("_ooOoo_", 150);
44     PrintCenterAlign("o8888888o", 150);
45     PrintCenterAlign("88\" . \"88", 150);
46     PrintCenterAlign("(| -_- |)", 150);
47     PrintCenterAlign("O\\ = /O", 150);
48     PrintCenterAlign("____/'---'\\____", 150);
49     PrintCenterAlign(".' \\\\| |// '.", 150);
50     PrintCenterAlign("/ \\\\||| : |||// \\", 150);
51     PrintCenterAlign("/ _||||| -:- |||||- \\", 150);
52     PrintCenterAlign("| | \\\\\\ - /// | |", 150);
53     PrintCenterAlign("| \\_| ''\\---/'' |_/", 150);
54     PrintCenterAlign("\\ .-\\__ `-` ___/-. /", 150);
55     PrintCenterAlign("___`. .' /--.--\\ `. . __", 150);
56     PrintCenterAlign(".\"\" '< `.___\\_<|>_/___.' >'\"\".", 150);
57     PrintCenterAlign("| | : `- \\`.;`\\ _ /`;.`/ - ` : | |", 150);
58     PrintCenterAlign("\\ \\ `-. \\_ __\\ /__ _/ .-` / /", 150);
59     PrintCenterAlign("======`-.____`-.___\\_____/___.-`____.-'======", 150);
60     PrintCenterAlign("`=---='", 150);
61     printf("\n");
62     PrintCenterAlign("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^", 150);
63     PrintCenterAlign("  *God Bless          Never Crash* ", 150);
64 }
65 
66 int main(int argc, char *argv[])
67 {
68     PrintGodBless();
69 }

以后会用到的,相信我,程序员写代码的最高境界竟然是信佛祖

猜你喜欢

转载自www.cnblogs.com/itjunjun/p/12910196.html
今日推荐