Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- int xa[100],ya[100],xb[100],yb[100],xc[100],yc[100];
- int i, liczba=0;
- ifstream plik "wspolrzedne.txt";
- for (i=0; i<100; i++){
- plik>>xa[i]>>ya[i]>>xb[i]>>yb[i]>>xc[i]>>yc[i];
- if ((xa[i]>0) && (ya[i]>0) && (yb[i]>0) && (xc[i]>0) && (yc[i]>0)){
- liczba++;
- }
- }
- cout<<"Liczba w I cwiartce: \n" << liczba;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement