when the program executed the Object b only return 0. Can any one tell me why the the Object b is returned 0. I want this program for constructor overloading.
A large part of programming is spent debugging and it's also the best way of learning. This question is too broad, test it every few lines and ensure the values are as expected.
I just looked through it and your compiler should be telling you what's wrong. Functions with no return value must use void. There's a lot of things wrong/bad, do one thing at a time and test it.