improve and add snippets

- improve
    - cout
    - cerr
    - printf
    - print

- add
    - begin_end
    - for with iterator
add lambda snippets for C++