You need to post a complete program that demonstrates the problem.