In the main function when you call getData, the array m_t is not declared anywhere .Either make this array global or pass a pointer (reference to this array) to the getData function
jonsca commented: "anonymous" is just some stupid stupid stupid spammer anyway +4
tux4life commented: Yes. +8
WaltP commented: Such a helpful post. I was wondering why he asked for help! -2