We are using cstrings because the assignment calls for that.
Ok. With a lot of things you may want to do in a program, strings are just easier to deal with than cstrings, but they do the same things.
Can't an array be converted to a double? (this may explain some of my confusion)
No. Any array has a type, and it holds data of that type. Here is an example of a char array:
Code:
char myArray[4] = {'a', 'b', '@', '+'};
Now, how would converting that to a double array work? What double would 'a' be? What double would '@' be?