wonman

Untitled

Feb 27th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4.  
  5. int main()
  6. {
  7.     wielomian drzewo
  8.     int s=1;
  9.     table[s];
  10.     wielomian.wypisz()
  11.    
  12.    
  13.     return 0;
  14. }
  15.  
  16. struct wielomina {
  17.  
  18. int stopien = s;
  19. tab[stopien] = table[s];
  20.  
  21.  
  22. void wpisz(int s, int table[s])
  23. {
  24.    
  25.     cout<<"podaj stopien ";
  26.     cin>>s;
  27.     cout<<"podaj  wspolczynniki: "
  28.     for(int i=0;i<stopien;i++)
  29.     {
  30.         cout<<i<<": ";
  31.         cin>>table[i];
  32.         cout<<endl;
  33.     }
  34. }
  35.    
  36.     void wypisz(int s, int table[s])
  37.     {
  38.         cout<<endl;
  39.         for(int i=0;i<stopien;i++)
  40.     {
  41.         cout<<i<<": "<<tab[i];
  42.         cout<<endl;
  43.     }
  44.    
  45.     }
  46. };
  47.  
  48.    
  49.     return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment