Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Bismillahir Rahmanur Rahim*/
- //Template created by topcoder00
- # include <list>
- # include <bitset>
- # include <algorithm>
- # include <sstream>
- # include <iostream>
- # include <cstdlib>
- # include <ctime>
- # include <set>
- # include <map>
- # include <cmath>
- # include <queue>
- # include <limits>
- # include <stack>
- # include <vector>
- # include <cstring>
- # include <cstdio>
- # include <fstream>
- using namespace std;
- int pel(string s){string t;t=s;reverse(t.begin(),t.end());if(s==t)return 1;return 0;}
- string toString(int n){ostringstream ost;ost<<n;ost.flush();return ost.str();}
- int toInt(string s){int r=0;istringstream sin(s);sin>>r;return r;}
- bool isprime(int m){if(m<2) return 0;for( int i=2; i*i<=m ; i++)if(m%i==0)return 0; return 1;return 0;}
- # define __(array,w) memset(array,w,sizeof array)
- # define FOR(i, a, b) for (int i=a; i<b; i++)
- # define REP(i, a) FOR(i,0,a)
- # define all(c) (c).begin(), (c).end()
- # define sz(x) x.size()
- # define MAX INT_MAX
- # define pb push_back
- # define MP make_pair
- # define X first
- # define Y second
- # define SBS(s,a,b) (s).substr(a,b)
- # define UNQ(s) {sort(all(s));(s).erase(unique(all(s)),s.end());}
- # define rive(s) reverse(s.begin(),s.end())
- # define VI vector<int>
- # define VS vector<string>
- # define VC vector<char>
- # define out(a) cout<<#a<<"= "<<a<<endl;
- void wait ( int seconds )
- {
- clock_t endwait;
- endwait = clock () + seconds * CLOCKS_PER_SEC ;
- while (clock() < endwait) {}
- }
- int main ()
- {
- time_t rawtime;
- tm * ptm;
- time ( &rawtime );
- ptm = gmtime ( &rawtime );
- char hh[4],mm[4],ss[4];
- int h=ptm->tm_hour+6,m=ptm->tm_min,s=ptm->tm_sec;
- while(1){
- printf("%2d:%2d:%2d",h%12,m,s);
- if(ptm->tm_hour+6 <12)cout<<" AM";else cout<<" PM";cout<<endl;
- s++;if(s==60)m++,s=0;if(m==60)m=0,h++;if(h==12)h=0;
- cout<<"\n\n\n\n\n\n\n\n\n\nDesigned by Iftekhar ahmed eather,\nStudent of CSE (07 batch),\nBUBT, Mirpur";
- wait(1);
- system("cls");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement