2015-09-30から1日間の記事一覧
atof使うとビルドが通らないので自分で作ります。 atof2.h float atof2(const char* s); atof2.c float atof2(const char* s){ float rez = 0, fact = 1; if (*s == '-'){ s++; fact = -1; }; for (int point_seen = 0; *s; s++){ if (*s == '.'){ point_see…
atof使うとビルドが通らないので自分で作ります。 atof2.h float atof2(const char* s); atof2.c float atof2(const char* s){ float rez = 0, fact = 1; if (*s == '-'){ s++; fact = -1; }; for (int point_seen = 0; *s; s++){ if (*s == '.'){ point_see…