CPP while working