forked from ASD-ADF/ASD_Task_2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
36 lines (35 loc) · 843 Bytes
/
Main.cpp
File metadata and controls
36 lines (35 loc) · 843 Bytes
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
#include <iostream>
#include "heads.h"
using namespace std;
bool cek;
clock waktu,cwaktu;
bool val;
int main()
{
cek=false;
cek=IsValid(10,22,54);
if (cek==true){
cout<<"Jam Benar" <<endl;
}
else if (cek==false){
cout<<"Jam Salah" <<endl;
}
waktu=buatjam(10,22,54);
cout<<"sekarang jam : " << waktu.jam << " : " << waktu.meni << " : " << waktu.det << endl;
cout<<"jam sekarang : " << ambiljam(waktu) << endl;
cout<<"menit sekarang : " << ambilmenit(waktu) << endl;
cout<<"detik sekarang : " << ambildetik(waktu) << endl;
setjam(12);
setmen(29);
setdet(45);
cwaktu=buatjam (02, 52, 39);
val=Equal (waktu,cwaktu);
if (val=true){
cout<<"True" <<endl;
}
else if (val=false){
cout<<"False" <<endl;
}
Print (waktu);
return 0;
}