2017-11-14から1日間の記事一覧

K&R演習[2-4]

課題 文字列s2中の任意の文字に等しい文字をs1から除去するような形のsqueeze(s1, s2)を書け。 回答 #include <stdio.h> #include <string.h> void squeeze(char s1[], char s2[]); const int OK = 1; const int NG = 0; /** * @fn Main * @brief * @param * @return * @detail </string.h></stdio.h>…