Hi fellow programmers. I'm current using VB C++ 6.0
I don't know what's wrong with my code. I think it's right
can you guys please explain to me what this error is??
error C2440: 'initializing' : cannot convert from 'const int' to 'struct PayRec'
No constructor could take the source type, or constructor overload resolution was ambiguous
Visual Basic C++ 6.0? I hope you mean Visual Studio 6 (which, by the way, has a C++ compiler containing a number of know bugs and other issues - why not upgrade to something better and free of charge?)
Anyway, your code compiles and runs on two of my systems, and also here: http://ideone.com/lxnXv