Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  12
Language: C/C++
Code:
#include <iostream>                              
#include <cstdio>                                     
 
int main ()
{
    char oldfilename[] = "D:\\test1.jpg";                   
    char newfilename[] = "D:\\newfilename.txt";                   
 
    if ( rename( oldfilename, newfilename ) == 0 )  
          
        std::cout << "Файл успешно переименованn";
    else
        std::cout << "Ошибка переименования файлаn";
    return 0;
}
          
          
Comments: