customer[i].date = getDate
Are you calling a function?
If so, how do you call a function?
How is this function returning anything? Remember you defined your function to return nothing (void).
Also you know you can't use the assignment operator= with C-strings, why are you trying to assign C-strings?
Stop, think! You have solved this problem with your other strings, do something similar.
I'm sorry. that was pseudocode.. just to show you what I planned.
When I am finished, the date will be split and converted into three integers and returned to a struct as such. I'm just trying to get the string testing done before I even attempt it. In my mind, getDate is the first in a string of functions to test the data, convert it, and return it for printing. I haven't quite wrapped my mind around how that's going to flow yet.
but.. to call a function I would use getDate();
and to put a C string into my date element I would have to use strcpy.
This post has been edited by synlight: 04 April 2013 - 02:28 PM