app/authors.h
static const char *authors[] = { /* original author(s) */ "Alexander Larsson", ... NULL};
输出:
const int nauthors = (sizeof(authors) / sizeof(authors[0])) - 1;for (i = 0; i < nauthors; ++i) { printf("%s\n", authors[i]);}
本文共 301 字,大约阅读时间需要 1 分钟。
app/authors.h
static const char *authors[] = { /* original author(s) */ "Alexander Larsson", ... NULL};
输出:
const int nauthors = (sizeof(authors) / sizeof(authors[0])) - 1;for (i = 0; i < nauthors; ++i) { printf("%s\n", authors[i]);}
转载于:https://my.oschina.net/iblackangel/blog/890116