I am fairly new to C++ so maybe I am asking for the obvious.
However, I am trying to write a C++ script for the Windows 10 OS which does the following:
1. Find a file with certain extension (.JPG/BMP/Etc.)
2. Then alter the filename, while keeping the extension.
3. Do this in a 'while' loop, and increment by 1 every time a filename is changed. So the result would be, if I have 1000 BMP pictures, I have 1.bmp, 2.bmp etc. etc.
I have Googled for hours, even implemented boost:: but I cannot seem to get it working, not because of errors, but because I cannot seem to think of the right script itself for this.
My taught wss something like this;
1. Create a boolean, which searches for JPG/BMP extensions.
2. If this would be true, then use this in a while loop and call a function for example to change the name.
But again... the codes which I found on the net are far to complicated for me to understand right now, most script averages around 40 lines of main coding. I can hardly belief that C++ doesn't have a neat way of handling such design requests. Also those scripts have a other intented actions so manipulation of those scripts seems too hard for me.
My question: can someone point me in the right direction?