time.C
.
The function
localtime
fills up a structure with information,
and returns a pointer to this structure.
tm_sec
might be a leap second.)
Pass some information down to three functions
(print
,
next
,
and
next
)
that do all the work.
3ints.C
.
Hold the information about a date in three
int
s.
struct.C
.
Hold the information about a date in one
struct
.
obj1.C
.
An object with data members and (non-static) member functions
obj2.C
.
Add a constructor and a static data member.
main
function tried to create a
date d {2, 30, 2025}; //Bad date: there is no Ferbruary 30Can you
catch
the exception?
#include
with
"
double quotes"
looks in your current directory for the header file.
#include
with
<
double quotes>
looks in the directory
/usr/include/c++/14
for the header file
(on our machine
storm.cis.fordham.edu
).
date.h
, date.C
, main.C
)
with
c++ main.C date.C
date.h
.
The header file for class
date
.
date.C
.
The implementation file for class
date
.
main.C
.
A C++ program that uses objects of class
date
.
main2.C
.
Another C++ program that uses objects of class
date
.
date.h
, date.C
, main2.C
)
with
c++ main2.C date.C
int
s:
stack
.