Hello everyone,
I have used the Vector2 Class which is implemented by my asst. ,
and I encountered a problem with initializing it.
VS2008 kept saying I violate 0xC0000005 Error, and I counldn't find any reason for this.
Is there anyone who can tell me what mistakes I have made?
Thank you.
Hong
Vector2<float> m_pVec2Stage[150];
/*
...
*/
for(int n = 0; n<150; n++)
m_pVec2Stage[n] = Vector2<float>(0,0);
/*
...
*/
template <typename T>
Vector2<T> &Vector2<T>::set (const Vector2 &d) {
x = d[0];
y = d[1];
return (*this);
}