When I run this program it's running in some other program.
If the code is not correct then please give me the correct code.
A:
You're running too many lines of code in your main, and expecting them to run in order.
This:
if (flag == 1) {
fprinter = fopen("PrintStuff.txt","w");
fprintf(fprinter, "This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf(fprinter, "
This line is supposed to print");
fprintf( be359ba680
Related links:
Commentaires