Creating a void function, Create a void function that will

Why was the turbidity of yeast culture measured
May 5, 2020
The purpose of product labeling
May 5, 2020

Creating a void function, Create a void function that will

Question: Create a void function that will take an empty array as it’s only argument and return a 3 dimensional vector. The fucntion must use a getline to read a string from the console that is formatted such as [22.3, 12.2, 43.7] (brackets and commas included). I need to parse the string to obtain the three values and store them in the array (convert values to c-strings and use the atof functin). Also it must create an error message and exit the program if its missing brackets, commas etc using the exit (1) function.