Complex numbers have the form realPart + imaginaryPart * i. Both realPart and imaginaryPart are integers. Write C++ code below to define a complex structure with two integer variables – realPart and imaginaryPart.
b. Define a function called inputdata(array, size) to ask user to input integers for those 5 complex numbers and store into the array.
c. Define a function called displaydata(array,size) to display the information of the array of the complex numbers. You can display the number as (realPart, imaginaryPart) instead of realPart + imaginaryPart * i