Compiler insists rename() function is of type void

Advertisements everyone! I’m trying to write a program capable of renaming files, but I’m encountering a weird issue. When I write this: string oldname, newname; rename(oldname, newname); Everything works fine. The file is renamed and there are no problems. But then when I go ahead and try this: int result; result = rename(oldname, newname); if(result)… Read More Compiler insists rename() function is of type void