摘要:
下面这段代码:#include<iostream>#include<fstream>usingnamespacestd;main(){char*filename=(char*)malloc(40);strcpy(filename,"/home/admin/local/apache/logs/access_log");ifstreamifs(filename);if(ifs.good()){cout<<"opensuccess"<<endl;stringtemp;getline(ifs,temp);cout& 阅读全文