Create some new data type of your choosing (struct or class) by c++. Create at least one instance…
Create some new data type of your choosing (struct or class) by c++. Create at least one instance of that type. Have a function with reference parameter that is one of those class/struct type instances. Have a function with value parameter that is one of those class/struct type instances. Use the above in your main. Your program can be very short and insubstantial in the grand scheme of things – the goal is to get practice in CODE YOU COME UP WITH (do not use the examples we went over in class from the textbook) to have data “shared”/used between a function and some portion of code that calls that function. Extra credit – take advantage of your knowledge of pointers for some parts of the above, in your code example.