2017-11-10から1日間の記事一覧
課題 ブランクの列を同じスペーシングをお粉う最小の数のタブおよびブランクで置き換えるプログラムentabを書け。 回答 #include <stdio.h> #include <string.h> typedef unsigned long int u8; const int TAB_WIDTH = 8; // タブ幅 void detab(u8 n, char *rslt); void entab(c</string.h></stdio.h>…
課題 ブランクの列を同じスペーシングをお粉う最小の数のタブおよびブランクで置き換えるプログラムentabを書け。 回答 #include <stdio.h> #include <string.h> typedef unsigned long int u8; const int TAB_WIDTH = 8; // タブ幅 void detab(u8 n, char *rslt); void entab(c</string.h></stdio.h>…