Added scoped samples for C++.