Putting a "wall" (black rect) into the screen

Well, its not much, but it's C++ and I just need not to get stuck! So
little is good.