Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- struct punkt{
- double x;
- double y;
- };
- int wyznacz(punkt tab, int n){
- for (int i=0; i<n ; i++){
- }
- return;
- }
- void wczytaj(punkt tab[],int n){
- for(int i=0; i<n; i++){
- cout << "wczytaj x pkt " << i+1 << endl;
- cin >> tab[i].x;
- cout << "wczytaj y pkt " << i+1 << endl;
- cin >> tab[i].y;
- }
- return;
- }
- int main(){
- int n;
- punkt *tab;
- cout << "n = ";
- cin >> n;
- tab = new punkt[n];
- wczytaj(tab , n);
- delete [] tab;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement