As stated in What does “operator = must be a non-static member” mean?, the operator overload needs to be a member function.
Note that when you overload the operator=, you should return a reference to the left operand, so it won't break the flow and will allow expressios like:
dataRecord r1;
dataRecord r2;
...
dataRecord r3 = r2 = r1;