Advertisement
uberzawadaog

projekt4_main

Nov 27th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include "Charges.h"
  2.  
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8.     Charges c;
  9.  
  10.     c.add(0,0, +2).add(1,0, -1).add(-1,0, -1);
  11.  
  12.  
  13.  
  14.     cout << "ilosc ladunkow: " << c.n() << endl;
  15.  
  16.     cout << "sila w punkcie 3,3: " << c.force(3,3, +1).x << " " << c.force(3,3, +1).y <<    endl;
  17.  
  18.     Charges::epsilon() = 80;
  19.  
  20.     cout << "po zwiekszeniu stalej epsilon " << c.force(3,3, +1).x << " " << c.force(3,3, +1).y <<    endl;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement