2013年8月30日
摘要: It's not clear if it's legal or portable, but it is rather popular.#include #include struct line { int length; char contents[]; // Flexible array member};int main(){ int this_length = 20; struct line* this_line = (struct line*) malloc(sizeof(struct line) + sizeof(char) * this_length); this_l 阅读全文
posted @ 2013-08-30 11:14 chenkkkabc 阅读(329) 评论(0) 推荐(0) 编辑