-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLab1.cc
73 lines (50 loc) · 841 Bytes
/
Lab1.cc
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
//Lab1-4
#include <iostream>
#include <cctype>
#include <vector>
using namespace std;
void insert (vector b, string a)
struct word_entry
{
string ord;
int antal;
};
vector<word_entry> lista;
int main()
{
string ordet;
while (cin >> ordet)
{
cin >> ordet;
int i = 0;
while (ordet[i])
{
c=str[i];
putchar (tolower (c));
++i;
}
for (auto it = lista.begin(); it != lista.end(); ++it)
if
insert (lista, ordet)
}
//Test1-4
#include <iostream>
#include <cctype>
using namespace std;
string ordet;
int main()
{
while (cin >> ordet)
{
cin >> ordet;
}
unsigned int i = 0;
while (ordet[i]>ordet.length())
{
// putchar (tolower (ordet[i]));
ordet[i]=tolower (ordet[i]);
++i;
}
cout << ordet;
return 0;
}