A voir également:
- Créer un formulaire en C et extraire data
- Créer un compte gmail - Guide
- Créer un compte google - Guide
- Créer un groupe whatsapp - Guide
- Créer un compte instagram sur google - Guide
- App data - Guide
1 réponse
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
void main()
{
char reponse;
FILE *fp
fp=fopen("chemin_du_fixhier.txt", "w+");
printf("Formulaire \n ");
printf("------------- \n ");
printf("\n Tu pose ta question 1 :"); scanf("%c", &reponse);
fwrite(fp, reponse);
fwrite(fp, "\n\r");
printf("\n Tu pose ta question 2 :"); scanf("%c", &reponse);
fwrite(fp, reponse);
fwrite(fp, "\n\r");
printf("\n Tu pose ta question 3 :"); scanf("%c", &reponse);
fwrite(fp, reponse);
fwrite(fp, "\n\r");
fclose (fp);
}
Et voili voilou !
#include <stdio.h>
#include <stdlib.h>
void main()
{
char reponse;
FILE *fp
fp=fopen("chemin_du_fixhier.txt", "w+");
printf("Formulaire \n ");
printf("------------- \n ");
printf("\n Tu pose ta question 1 :"); scanf("%c", &reponse);
fwrite(fp, reponse);
fwrite(fp, "\n\r");
printf("\n Tu pose ta question 2 :"); scanf("%c", &reponse);
fwrite(fp, reponse);
fwrite(fp, "\n\r");
printf("\n Tu pose ta question 3 :"); scanf("%c", &reponse);
fwrite(fp, reponse);
fwrite(fp, "\n\r");
fclose (fp);
}
Et voili voilou !