Quick C question
Hey everyone!
Im trying to write a program in C that makes a copy of another file. Im having problems so far. Quote:
Quote:
Quote:
|
you'd use sprintf to convert the integer into a formatted string. eg...
sprintf (filename, "myfile%d.txt", x); fopen(filename); |
you need to convert the integer you had from the random number you generated to a string. You can do this using a function such as sprintf, check out man sprintf...
|
By the way, use [ code ] instead of [ quote ] for code samples, to keep the indentation.
|
All times are GMT -5. The time now is 06:38 AM. |