Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  confirm
Language: C/C++
Code:
#Іnclude <stdio.h> 
#include <conio.h> 
#define FNAME "D:\book.txt" 
#defineN 5
void main ()
{
char fname[15]=FNAME; FILE *out; int n; clrscr();
printf("File kimi"); printf("%sn". fname);
if ((out= fopen(fhame,"wt"))=NULL)
{
printf("Fildi ashuda kate bar");
getch();
return; 
}
for (int i=0; i<N; i++)
{
scanf("%i",&n); fprintf(out, "%in",n);
}
fclose(out); printf("%sn",fname);
getch ()

          
Comments: