hi again!
this time im tasked to create 2 data structure types: RationalNo and RationalInfo. The structure for RationalInfo consists of RationalNo as a nested structure and a few other functions. RationalNo is an array with fixed size.
but i got no idea how to even begin and populate the array in the structure for both RationalNo and nest it in RationalInfo...
i dont think the way i started is even correct
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
struct RationalNo
{
RatNo [20];
}
struct RationalInfo
{
RationalNo;
int Quotient;
int Remainder;
int ValueDiv;
}
int main()
{
srand(time(NULL));
RatNo [20] = rand() % 101 + 1
}