Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ...v metodě Drawing::readFile
- if(s == "circle")
- {
- for(int i =0; i< circlesCount; i++){
- circles[circlesCount].readFile(sstream);
- circlesCount = circlesCount + 1;
- }
- }
- // nic se ti nenačte, protože při prvním průchodu je circlesCount 0
- // odstraň for cyklus
- // ...v metodě Drawing::draw
- for(int i =0; i < circlesCount;i++)
- {
- circles[i].draw(dev);
- circlesCount = circlesCount + 1;
- }
- // circlesCount označuje počet načtených kružnic - při vykreslování ho nechceš měnit
- // odstraň "circlesCount = circlesCount + 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement