聲明:這個圖形是網上找到的,非LZ原創,只是LZ稍作整體記錄下來而已
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 }
(注意:必須以等寬字體顯示才能看到較好的效果)