I want to make a C++ program that moves files [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am a fairly new C++ programmer and I am trying to set up a program that moves 2 files into a different location. How do I do this?

Under Windows, there is an API just for that purpose, the MoveFileEx() function.
To use it, start with:
#include <windows.h>
And then you can simply do something like this:
BOOL result = MoveFileEx("C:\\dir\\myfile.txt", "D:\\another\\directory\\output.txt", MOVEFILE_COPY_ALLOWED);

Related

Function in CUDA that does the same thing as compiler.SourceModule in pyCUDA [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I have a question in CUDA programming.
Is there a way to obtain a module by accepting the contents of a *.cu file as a string rather than loading a *.cu file and compiling with cubin? I'd like to utilize nvrtc if possible.
I wrote most of the code using nvrtc, and I'm looking for a way to not create external files like cubin.

Can I call a C++ function from python and python function from C++ without library file like .so ...? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
I search the Python/C api and I write the my code. But this code shouldn't have .so like library files. İs it possible? If possible please show me to way.
I use CFFI,cython,pybind11 this is have the same way.

How to check multiple files for duplicates in C++ [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I need to compare 5 files by their file paths: a,b,c,d,e and find duplicates if exists.
How can I do this in c++ via md5sum comparison of files?
You'd need to compute a checksum for each file (write it yourself or call an external program), get hold of each file, ... This depends on the operating system. It is much easier to do something like this in a scripting language.

How to make a MATLAB function to be run in html? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've developed a MATLAB code that I think it is useful to be used by researchers. How can I embed it in a website to be used free?
It gets two integers and return a set of integers
Also it is possible to convert it to c++, If it helps.
Thanks
Submit your m-file(s) to Matlab Central File Exchange, this is the perfect place for it.

How can I get my program looks like QtDemo? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How can I edit my program to have a look like QtDemo ?
I am using Qt 4.7.
Thanks
A Qt installation often includes the demo code. Start with the source code from QtDemo, strip out the demo part and then add your code.