There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
// use the typedef for "A"
typedef struct B {
reference int;
A xxx;
} record_b;
to access the info,
B my_b;
// ....
int my_number = my_b.xxx.number;
BTW, you may want to use "char *" for name, not just "char" as the latter is just a single character, and it looks like its for storing a name....