weixin_39788382的博客在Linux下,使用gets(cmd)函数报错:warning: the 'gets' function is dangerous and should not be used.解决办法:采用fgets(cmd,100,stdin);//100为size问题解决!fgets从stdin中读字符,直至读到换行符或文件...
cunjiu9486的博客C and C++ programming language provide the functiongets() in order to read input from standard input which is generally a terminal. getsis the short form of the get stringwhere string shortens as s...