X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=demos%2Ftimesheet.cpp;h=da349c4a490bacbc8de14f6edb399b1a390f29d8;hb=baf73883169fa3566f60f4fb97e8ae2628d78b7c;hp=169f340aad810f5a7e4f6aac6b167ef34fa6f456;hpb=bc014628c407db99abf7e0461aa0e961493726aa;p=AXE.git diff --git a/demos/timesheet.cpp b/demos/timesheet.cpp index 169f340..da349c4 100644 --- a/demos/timesheet.cpp +++ b/demos/timesheet.cpp @@ -1,4 +1,4 @@ -#include "date.h" +#include class activity { @@ -41,17 +41,17 @@ main() hour t1, t2; String action1, action2, datestring; - cin >> datestring; - cin >> action1; + std::cin >> datestring; + std::cin >> action1; d1 = date(datestring); t1 = hour(datestring); - while (cin) + while (std::cin) { - cin >> datestring; + std::cin >> datestring; d2 = date(datestring); t2 = hour(datestring); - cin >> action2; + std::cin >> action2; // process the activity from nr 1 to nr 2. @@ -87,7 +87,7 @@ main() action1 = action2; } - cout << "Activity\tJan\tFeb\tMar\tApr\tMay\tJun\tJul\tAug\tSep\tOct\tNov\tDec\tTOTAL\n\n"; + std::cout << "Activity\tJan\tFeb\tMar\tApr\tMay\tJun\tJul\tAug\tSep\tOct\tNov\tDec\tTOTAL\n\n"; for (a = timesheet; a; a = a->next) { @@ -109,11 +109,11 @@ void activity::print(void) { hour total; - cout << description << "\t"; + std::cout << description << "\t"; for (int i=0; i<12; i++) { - cout << spent_in_month[i] << "\t"; + std::cout << spent_in_month[i] << "\t"; total += spent_in_month[i]; } - cout << total << "\t" << description << "\n"; + std::cout << total << "\t" << description << "\n"; }