Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. // ...v metodě Drawing::readFile
  2.  
  3. if(s == "circle")
  4.         {
  5.             for(int i =0; i< circlesCount; i++){
  6.                
  7.             circles[circlesCount].readFile(sstream);
  8.             circlesCount = circlesCount + 1;
  9.             }
  10.         }
  11.  
  12. // nic se ti nenačte, protože při prvním průchodu je circlesCount 0
  13. // odstraň for cyklus
  14.  
  15. // ...v metodě Drawing::draw
  16.  
  17. for(int i =0; i < circlesCount;i++)
  18.     {
  19.     circles[i].draw(dev);
  20.    
  21.     circlesCount = circlesCount + 1;
  22.     }
  23.  
  24. // circlesCount označuje počet načtených kružnic - při vykreslování ho nechceš měnit
  25. // odstraň "circlesCount = circlesCount + 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement