code style modify

1. C++ 11 headers support
2. modify else {  check