读书人

system(quot;find -name quot;iniquot; gt; a.txtquot;);

发布时间: 2012-09-24 13:49:41 作者: rapoo

system("find -name "*.ini" > a.txt");
#include<stdlib.h>
main()
{
system("find -name "*.ini" > a.txt");
}
错误:expected expression before ‘.’ token

[解决办法]
#include<stdlib.h>
main()
{
system("find -name \"*.ini\" > a.txt");
}
注意转义

读书人网 >C语言

热点推荐