摘要: Pathintmain(intargc,char*argv[]){pathp(argv[1]);//preadsclearerthanargv[1]inthefollowingcodetry{if(exists(p))//doespactuallyexist?{if(is_regular_file(p))//isparegularfile?cout<<p<<"sizeis"<<file_size(p)<<'\n';elseif(is_directory(p))//ispadirectory?{cout<& 阅读全文
posted @ 2011-11-19 14:54 Keosu 阅读(2610) 评论(0) 推荐(0) 编辑