error at line 15,error C2248: 'wInt::num' : cannot access private member declared in class'wInt'
Yes,i know that line 15 has no purpose,but it's enough to get the error.
Thanks in advance :)
If you want access to the private member variables you either need to make this a member function or a friend. Also you have two const parameters, what is the purpose of the function? Remember if a parameter is const you can't change that parameter.
The function is a friend,look at the declaration.This is a small part of a program,I wrote the shortest form I could,so the function has no purpose here.