1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
|
#include "stdafx.h"
#include "stdlib.h"
int main
{
char typ[50];
char segelfläche[10];
char material[50];
char satz[100];
FILE *boote=fopen("DATboote.dat","a");
//Der Teil zum einlesen
puts("Geben Sie Bootstyp ein: ");
scanf("%s",typ);
fprintf(boote,"%stt",typ);
puts("Geben Sie die Segelffäche ein: ");
scanf("%s",segelfläche);
fprintf(boote,"%stt",segelfläche);
puts("Geben Sie das Material an: ");
scanf("%s",material);
fprintf(boote,"%sn",material);
//Der Teil zum auslesen
fscanf(boote,"%s",satz);
printf("%sn",satz);
fclose(boote);
return 0;
} |