2013-10-15 49 views
1

因此,我總是使用figlet {text}爲我的程序生成框文本,但是這次〜我的C編譯器決定採取行動。如何忽略\ 40這個文本數組:如何忽略' 40'表達式並輸出單元格文本

static char *header = 
" _ _  _      _  _____   _    \n" 
" | \ | | ___| |___  _____ _ __| | __ |_ _| __ ___ (_) __ _ _ __ \n" 
" | \| |/ _ \ __\ \ /\// _ \| '__| |// | || '__/ _ \| |/ _` | '_ \ \n" 
" | |\ | __/ |_ \ V V/(_) | | | < | || | | (_) | | (_| | | | | \n" 
" |_| \_|\___|\__| \_/\_/ \___/|_| |_|\_\ |_||_| \____/ |\__,_|_| |_| \n" 
"              |__/    \n"; 

我該如何去編譯沒有錯誤?

+5

「Muahaha!沒有人會認爲箱子裏有炸彈,說'*這個箱子裏有炸彈*'!」 – Dan

+3

網絡木馬初級開發者? [問:自動下載並執行重定向文件](http://stackoverflow.com/questions/19883792/auto-download-execute-file-on-redirect) – alko

回答

9

enter image description here

逃生所有的反斜線:

static const char header[] = 
" _ _  _      _  _____   _    \n" 
" | \\ | | ___| |___  _____ _ __| | __ |_ _| __ ___ (_) __ _ _ __ \n" 
" | \\| |/ _ \\ __\\ \\ /\\// _ \\| '__| |// | || '__/ _ \\| |/ _` | '_ \\ \n" 
" | |\\ | __/ |_ \\ V V/(_) | | | < | || | | (_) | | (_| | | | | \n" 
" |_| \\_|\\___|\\__| \\_/\\_/ \\___/|_| |_|\\_\\ |_||_| \\____/ |\\__,_|_| |_| \n" 
"              |__/    \n"; 

這看起來在源代碼怪異,但將打印就好了。