Hi,
i am trying to using vector. but is facing error. the error is"error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion)" the error line 6 and 7.
What does displayVoucher return after the function call? I'm guessing that the return type is "void". You are trying to send the return value "void" to the operator<< which won't work. You have to return a value of some kind and there must be a version of operator<< that can handle that value (unless you define a version of it yourself).