main.cpp
By: jazy | Date: Oct 2 2007 19:24 | Format: C++ | Expires: never | Size: 892 B | Hits: 1295
- #include <iostream>
- #include <string>
- #include "clockType.h"
- using namespace std;
- int main()
- {
- int hours;
- int minutes;
- int sec;
- string z;
- char zone[2];
- extClockType a,b;
- cin>>a;
- cout<<"Please enter TimeZone: ";
- cin>>z;
- zone[0] = z[0];
- zone[1] = z[1];
- a.setZone(zone);
- cout<<a;
- // Clock Number 1 is completely setup.. lets do number 2.. ya c'mon //
- cin>>b;
- cout<<"Please enter TimeZone: ";
- cin>>z;
- zone[0] = z[0];
- zone[1] = z[1];
- b.setZone(zone);
- cout<<b;
- a + b;
- if (a == b)
- cout<<"They are equaln";
- else
- cout<<"They aren't equaln";
- cout<<"Increment it by a second....n";
- ++a;
- cout<<"Printing then incrementing again....n";
- a++;
- cout<<"Test the second increment..n";
- cout<<a;
- return 0;
- }
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago