unsigned get_minute() const;
unsigned
time::get_minute() const {
return minutes;
}
.h header file.
.cc source file.
:: scope operator.
t.minutes: -100 t.hours: 25
Does this look correct to you?
1) deadline = new.add(period); 2) deadline = new + period;
time::add()() as the binary
plus operator.
print_int(std::cout, i); print_double(std::cout, x); print_string(std::cout, "hello"); print_char(std::cout, 'c');
Wouldn't it be better to not have to think of all those function names?
print(std::cout, i); print(std::cout, x); print(std::cout, "hello"); print(std::cout, 'c');
This page last modified on 5 October 2003.