by JoshCole · 15y ago · 0 comments
bool operator<(.., ..)
{
return operator<(.., ..);
}
He ran the code and it worked. I was confused.Another student saw the teacher pass him and copied his implementation. His code didn't work. It gave the stack overflow error that I was expecting.
It turned out that the reason the guy had his code work in the first place was because it was never included in the program. He had put the code in his C++ file, but forgot to include it in his header. When the program compiled, it never knew his code existed.
For(i=1 to 10) {then print i; } Today my friend is working as a techie ....senior mgr at his new company!