updated c++ const and static demos