• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Information on Structs

Hi,

I have a multi file project where I have 3 structs.

Is it possible to have something like the following

Struct Date
{
int day;
int month;
int year;
};
&
Struct Record
{
Date aDate;// and have this as a valid part of this struct
string whatever;
string whatever;
};
I have a program where I need to specify a date variable in a different struct as above.

Kaz
0
KazIT
Asked:
KazIT
1 Solution
 
efnCommented:
Yes, you can certainly do this.  It's a standard data structuring technique.
0
 
KazITAuthor Commented:
thanks efn....the points are yours.

Kaz
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Firewall Management 201 with Professor Wool

In this whiteboard video, Professor Wool highlights the challenges, benefits and trade-offs of utilizing zero-touch automation for security policy change management. Watch and Learn!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now