Article 5QFXJ [SOLVED] In c++ is it possible to declare a structure in a structure?

[SOLVED] In c++ is it possible to declare a structure in a structure?

by
errigour
from LinuxQuestions.org on (#5QFXJ)
Can i declare a structure in a structure in c++?
Code:struct currency {
int dollar;
int penny;
};
struct data {
char usernam[51];
struct currency onhand;
};I try and it isnt working is there a work around or does c++ not allow structures in structures?latest?d=yIl2AUoC8zA latest?i=p7bkOADeKo8:0xA_86J8lC8:F7zBnMy latest?i=p7bkOADeKo8:0xA_86J8lC8:V_sGLiP latest?d=qj6IDK7rITs latest?i=p7bkOADeKo8:0xA_86J8lC8:gIN9vFwp7bkOADeKo8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments