c++ tables of unions and structures
- by newbDeveloper
I was told to write a program, that creates a union and structure, then creates two-element arrays of unions and structures and fills their fields. I have created a union and a structure, but how to fill their fields in arrays ?
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
union complex;
union…