Thanks for answering
user interface of my program is command line,
yes of course ، i use render window، look...
VideoMode videoMode(x_main,y_main);
RenderWindow window(videoMode,"Rectangle Bin-packing");
x_mian and y_main are Length and width of main rectangle, and set by user in command line...
how can i use this code in a loop, draw 2 or more time rectangles with different position in one compile?
RectangleShape rectangle;
rectangle.setPosition(30,10);
rectangle.setSize(Vector2f(100, 30));
rectangle.setFillColor(Color::Yellow);
rectangle.setOutlineColor(Color::Red);
rectangle.setOutlineThickness(2);
excuse me im beginner