scanf, cin and clear stdin