📄 subject_37866.htm
字号:
<p>
序号:37866 发表者:夏乾坤 发表日期:2003-04-29 00:05:43
<br>主题:我做的递归 帮我看看我的代码哪里有错?
<br>内容: CInternetSession cInternet;<BR> CFtpConnection* cFtpcon;<BR> cFtpcon = cInternet.GetFtpConnection(IP,"public","tianye",21);<BR><BR> CFtpFileFind cFinder(cFtpcon);<BR> int nOK = cFinder.FindFile(filepath);<BR> while(nOK)<BR> {<BR> nOK = cFinder.FindNextFile();<BR> if(!cFinder.IsDots())<BR> {<BR> //cFinder.GetFileName();<BR> //cFinder.GetFilePath();<BR> if(cFinder.IsDirectory())<BR> {<BR> //CFtpFileFind find2(cFtpcon);<BR> CString tmp = cFinder.GetFilePath()+"/*.*";<BR> GetFtpFile(tmp); //递归<BR> }<BR><BR> if(!cFinder.IsDirectory()) //判断如果是文件则相对拷贝<BR> {<BR> CString tmp = cFinder.GetFilePath();<BR> tmp.Replace('/','\\');<BR> tmp.Insert(0,m_Edit5);<BR><BR> cFtpcon->GetFile(cFinder.GetFilePath(),tmp);<BR><BR><BR> }<BR> }<BR> if(nOK==0)break;<BR> }<BR><BR>我的代码有这样一个问题,就是比如这个根目录下有/CS,/IRE,/ORB,我的这些代码只能递归找到/CS下的一部分文件,然后就结束了<BR>2003-4-29 0:29:22
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -