forked from efka87/c9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
katse.cpp
88 lines (62 loc) · 1.96 KB
/
katse.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
78
79
80
81
82
83
84
85
#include <iostream>
#include <string>
char valik;
char teenus;
using namespace std;
void kliendiinfo (char name[], char perenimi[], char telefon[], char email[], char automark[], char automudel[], char vinkood[])
{
using namespace std;
cout << "Kirjuta nimi" << "\n\n" << endl;
cin >> name;
cout << "Kirjuta perenimi" << "\n\n" << endl;
cin >> perenimi;
cout << "Kirjuta telefoni number" << "\n\n" <<endl;
cin >> telefon;
cout << "Kirjuta email" << "\n\n" << endl;
cin >> email;
cout << "Kirjuta automark" << "\n\n" << endl;
cin >> automark;
cout << "Kirjuta auto mudel" << "\n\n" << endl;
cin >> automudel;
cout << "Kirjuta vinkood" << "\n\n" << endl;
cin >> vinkood;
}
void autoteenus (char teenus)
{
using namespace std;
cout<< "A.. Õlivahetus" << "\n" <<endl;
cout<< "B.. Rehvivahetus" << "\n" <<endl;
cout<< "C.. Kogu kompot" << "\n" <<endl;
switch (teenus)
{
}
cout << " Milline teenus (A,B,C)" << "\n\n" << endl;
cin >> teenus;
}
void autovalik (char valik)
{
using namespace std;
cout<< "\t\t\t\t" << " Autoteenindus " << "\n" <<endl;
cout<< "\n\n\n" << "Sõiduki liik" << "\n" << endl;
cout<< "A.. Maastur" << "\n" << endl;
cout<< "B.. Sõiduauto" << "\n" << endl;
cout<< "C.. Pakibuss" << "\n" << endl;
switch (valik)
{
}
cout << " Milline sõiduki liik vajab teenindust (A,B,C)" << "\n\n" << endl;
cin >> valik;
}
int main ()
{
char valik;
char teenus;
using namespace std;
char name[50], perenimi[50], telefon[50], email[50], automark[50], automudel[50], vinkood[50];
autovalik (valik);
autoteenus (teenus);
kliendiinfo (name,perenimi,telefon,email,automark,automudel,vinkood);
cout << "\t\t\t\t" << "Ülevaade" << endl;
cout << "\n\n\n\n\n\t\t\t\t" << name << "\n\t\t\t\t" << perenimi << "\n\t\t\t\t" << telefon << "\n\t\t\t\t" << email << "\n\t\t\t\t" << automark << "\n\t\t\t\t"<< automudel << "\n\t\t\t\t"<< vinkood << "\n\t\t\t\t" << endl;
return 0;
}