摘要:
出现错误:error: 'for' loop initial declarations are only allowed in C99 modenote: use option -std=c99 or -std=gun99 to comple your code 原因:所采用的代码格式是C99... 阅读全文
摘要:
在Linux下,使用gets(cmd)函数报错:warning: the 'gets' function is dangerous and should not be used.解决办法:采用fgets(cmd,100,stdin);//100为size问题解决!fgets从stdin中读字符,直至... 阅读全文