I can not do it with those examples ... I'm not very good with C + +.
Why not? Where are you stuck? What do you not understand with the examples?
Do you know how STL containers and algorithms work? If not you should grab a good
C++ book and learn some more basics of C++ first. C++ is a complex language and SFML requires you to have some basic understanding. Developing a game or application on the other hand requires you to have a lot more than just basic knowledge of if, for, while and #include.