-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathodevv3.cpp
77 lines (53 loc) · 1.5 KB
/
odevv3.cpp
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
ifstream benimDosyam;
string satir;
benimDosyam.open("input.txt");
while(getline (benimDosyam, satir))
{
cout<< satir << endl;
}
getline (benimDosyam, satir);
cout<< satir << endl;
benimDosyam.close();
{
ofstream benimDosyam;
benimDosyam.open("output.txt");
benimDosyam << "2018280022, 81" <<endl;
benimDosyam << "2018280028, 61"<< endl;
benimDosyam << "2018280033, 67" << endl;
benimDosyam << "2018280075, 52" << endl;
benimDosyam << "2018280099, 78"<< endl;
cout<< "En dusuk not 52 " << endl;
cout<< "En yuksek not 81" << endl;
cout<< "Ortalama 67.8" << endl;
cout<< "Medyan 67" << endl;
cout<< "Aciklik=29" << endl;
benimDosyam.close();
return 0;
using namespace std;
int main();
{
ifstream benimDosyam;
string satir;
benimDosyam.open("output.txt");
while(getline (benimDosyam, satir))
{
cout<< satir << endl;
}
getline (benimDosyam, satir);
cout<< satir << endl;
benimDosyam.close();
}
}}
//halime gungor 2018280022
//kaynaklar
//https://turkmuhendis.net/cppprogramlama/dosya-islemleri/
//https://www.yusufsezer.com.tr/cpp-dosya-islemleri/
//https://merttopuz.com/kodlama/cpp/cpp-girdi-ve-cikti-islemleri
//http://teknokafe.net/2017/11/22/c-txt-dosyalama-islemleri/
//https://www.youtube.com/watch?v=E-6ZvxCzqcU
//https://www.youtube.com/watch?v=BOoPd7SJvuk&list=PLoPK1OnMH5178ZBJNAVBA2FXcBMOYmv_n