N
nemesia31
i have a structure
typedef struct tm
{
int date;
int hour;
int minutes;
} time;
i want to use this structure dynamically, ie, i want it to grow.
like it would be
time *sept= new time;
sept->date=15;
......
.........
.......
but i want something like
for(int i=0;i<MAX;i++)
{
sept->date=i+5;
}
i want to grow the structure dynamically, ie, the valur of MAX is
provided at runtime.
how can i do tht????
typedef struct tm
{
int date;
int hour;
int minutes;
} time;
i want to use this structure dynamically, ie, i want it to grow.
like it would be
time *sept= new time;
sept->date=15;
......
.........
.......
but i want something like
for(int i=0;i<MAX;i++)
{
sept->date=i+5;
}
i want to grow the structure dynamically, ie, the valur of MAX is
provided at runtime.
how can i do tht????