Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Charges.h"
- using namespace std;
- int main() {
- Charges c;
- c.add(0,0, +2).add(1,0, -1).add(-1,0, -1);
- cout << "ilosc ladunkow: " << c.n() << endl;
- cout << "sila w punkcie 3,3: " << c.force(3,3, +1).x << " " << c.force(3,3, +1).y << endl;
- Charges::epsilon() = 80;
- cout << "po zwiekszeniu stalej epsilon " << c.force(3,3, +1).x << " " << c.force(3,3, +1).y << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement