Started forward iteration program in CPP