• Welcome to ComeFromChina Community (CFC中文网)! We are the largest Chinese Canadian community forum in Ottawa. Please to participate in discussions, post topics, view images, and access full community features. Join us today! 欢迎来到CFC中文网。请登录以参与讨论、发布主题并查看图片。

[问题] C/C++里有没有和Unix mv 对应的function

sable93

资深人士
VIP
注册
2003-11-11
消息
1,222
荣誉分数
92
声望点数
208
找了半天也没找到,不会要我
infp=fopen(SourceDir+"f1.dat","rb");
outfp=fopen(DestDir+"\\f1.dat", "wb");
while (feof(infp) ) {
read(inf); write(outfp);
}
getFileStatus(infp);
setFileStatus(outfp);
fclose(infp);fclose(outfp);
remove(f1.dat);
太烦了。
请高手指点江山,小弟assignment明天due.
谢谢
 
int rename( const char* old, const char* new );
 
我真TMD苯

看来得改行了。

谢谢
 
后退
顶部
首页 论坛
消息
我的