Can you post a complete program that compiles, executes and shows the problem?