ive been getting this error(error C2664: 'getRainfall' : cannot convert parameter 1 from 'std::string [12]' to 'double []')
since i started to code my program , and ive been trying to figure out but i coulndt find anything at all. Also, in the function it says 'name' undeclared identifer, but i identified it in the main?? can s1 explain it to me why it says undeclared identifier? and if i identify it in getRainfall function, is it gonna list name of the months?
thanks for helping...
You are trying to use a double when you should be using a string. Also, the error regarding 'name' not being defined is correct. There is no variable called 'name' in the getRainfall() function, only in the main() function.
well the thing is i have an assignment and, the array must be double thats why i wrote double in prototype.
btw it didnt work at all. when i run it, it only says press any key to continue,the loop doesnt work at all.
and also if statement inside the loop doesnt work, can s1 tell me why?