2016年9月14日 星期三

Use asytle to Format code

 astyle --style=allman --unpad-paren --pad-oper --convert-tabs --pad-header --delete-empty-lines [source_code_file] 

#source file : test.c

#include 
int main() {int i;printf("Just a test!\n");for(i=0;i<10;++i)printf("%d\n",i);}return 0;} 

#astyle --style=allman --unpad-paren --pad-oper --convert-tabs --pad-header --delete-empty-lines test.c


                 #include 

 int main() { int i; printf("Just a test!\n"); for (i = 0; i < 10; ++i)printf("%d\n", i); } return 0; } 

沒有留言:

demo_article

使用 msty.app 和 Knowledge Stacks 建立個人知識庫系統 說明 嘗試利用local llm自動從文字檔轉成影音檔 利用AI自動對文件檔產生影音檔案 - YouTube 引言 在資訊爆炸的時代,我們每天接收大量的資訊,但如何有效地管理...