Please help me learn how to compile this program.
Following is the source code projectl.spp. Given the Complex class and my Stock template class, complete the main function, and then compile, debug and test your program: C++ - project project.cpp Center project n mk Semter Wheren is the size of the stack, m is the modular of the real part and imagination part of a random complex number, and k is the number of elements displayed per line. In the main function, you need to 1. Get the values n, m, and k from the command line 2. Declare a complex number stack of size ngecraten random complex numbers and push them into the stack, meantime, display all these numbers, k numbers per line 3. Display all elements of the stack, k elements per line Student Name w Student ID projectl.cpp #include
#include time.h> using namespace std; class Complex float re: floatim: 1/ complex number class W real part W imagination part public: Complex(float -0.0,float i-0.0){re rim:) Complex const Complex&crec.re: imc.im; void operator (const Complex & crec.re: imc.im: Complex operator (const return Complex-re, -im): Complex operator+(const Complex & const: Complex operator (const Complex&const: Complex operator (const Complex&) const: Complex operator (const Complex&const: friend ostream& operator class myStack! T'pur int size: int tops storage body storage size top position public myStackint): -my StackOffreepers) bool empty fretum top -1:} bool full freturn top-size-1: int getholdo return top 1:1 void push(Tv){ptr[+top :) T popOfretum ptr top-l:) void display(int): W constructor destructor empty or not full or not get number of items hold put an item on top take an item from top pop and display, mitems per line I create an empty stack myStackints) ): template myStack ptr (T) mallocsize sizes top-1: pop and display, k items per line void myStackdisplay(int k) if lempty) inth gethold: cout"Number of items popped up *