Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for rocky_kuet

#include<fstream.h> #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> class ALARM { public : struct time t; int m,h,a,b; void resetalarm() { ofstream x("D:\\hour.txt"),y("D:\\minute.txt"); a=0,b=0; x<<a;y<<b; x.close();y.close(); } void setalarm() { ofstream x("D:\\hour.txt"),y("D:\\minute.txt"); cout<<"\n\n\t\t\t\tEnter hour\n"; cin>>a; cout<<"\n\n\t\t\t\tEnter minute\n"; cin>>b; x<<a;y<<b; x.close();y.close(); } void alarmmatch() { ifstream i("D:\\hour.txt"),j("D:\\minute.txt"); i>>a; j>>b; i.close();j.close(); gettime(&t); m=t.ti_min,h=t.ti_hour; if(h==a&&m==b) {cout<<"\n\n\t\t\t\tTime …

Member Avatar for nbaztec
0
2K