0

Is this even necessary? Will the computer automatically name each file? Or will it use the name designated in fopen()?

0

The short answer is YES, you need to name each and every file. That's also part of the assignment - to figure out how to construct the file name, and I believe the skeleton of it is already in the code that you are given to start with. No, the computer will not automagically name the files. Yes, the fopen will use the name given as a parameter in the fopen() function call.

IF this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

-1

In short, this is what you want.

sprintf(title, "%03d.jpg", counter);
1
  • Please do not give away the answer to the homework assignment. As Cliff B had already mentioned: "That's also part of the assignment - to figure out how to construct the file name ..." – Peter Pesch Oct 3 '18 at 5:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .