Skip to content

Commit 1c1b0c5

Browse files
Update From PC
1 parent 9d550b2 commit 1c1b0c5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

B.Sc._1_2_EmrahOzkaynak/Final_Exam/3-Question.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
int main(){
66

7-
FILE *file= fopen("Data.txt","w");
7+
FILE *file= fopen("3-Question.txt","w");
88
fprintf(file,"!!!BUNU YAZAN MALDIR!!!");
99
fclose(file);
1010

B.Sc._1_2_EmrahOzkaynak/Final_Exam/4-Question.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ void func(int a, int b, int c){
1212
printf("%d. Output: %d %d %d\n", ++i, a ,b ,c);
1313
}
1414

15-
int main(){
15+
int main(){
1616
func(15, 12, 8);
1717

1818
return 0;
19-
}
19+
}

B.Sc._1_2_EmrahOzkaynak/week_11-Random_Access_Files/1)Random_Access_Files.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ void updateRecords(void){
176176
//printf("%d %s %s %lf\n", info.accnum, info.name, info.sname, info.deposit); // Deneme Sat�r� //
177177
info.deposit += 50.0;
178178
fseek(fptr, i*sizeof(customer), SEEK_SET);
179-
fwrite(&info, sizeof(customer), 1, fptr); //Hatam�z�n sebebi fwrite() kullan�ld�ktan sonra pointeri do�ru yerde b�rakmamas�.
180-
fseek(fptr, (i+1)*sizeof(customer), SEEK_SET); //Hatam�z� ��zmek i�in pointeri ba�tan itibaren bir konuma at�yoruz.
179+
fwrite(&info, sizeof(customer), 1, fptr); //Hatamızın sebebi fwrite() kullanild�iktan sonra pointeri do�ru yerde b�rakmamas�.
180+
fseek(fptr, (i+1)*sizeof(customer), SEEK_SET); //Hatamizi izmek icin pointeri başstan itibaren bir konuma at�yoruz.
181181
}
182182
i++;
183183
fread(&info, sizeof(customer), 1, fptr);

0 commit comments

Comments
 (0)