Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main()
- {
- wielomian drzewo
- int s=1;
- table[s];
- wielomian.wypisz()
- return 0;
- }
- struct wielomina {
- int stopien = s;
- tab[stopien] = table[s];
- void wpisz(int s, int table[s])
- {
- cout<<"podaj stopien ";
- cin>>s;
- cout<<"podaj wspolczynniki: "
- for(int i=0;i<stopien;i++)
- {
- cout<<i<<": ";
- cin>>table[i];
- cout<<endl;
- }
- }
- void wypisz(int s, int table[s])
- {
- cout<<endl;
- for(int i=0;i<stopien;i++)
- {
- cout<<i<<": "<<tab[i];
- cout<<endl;
- }
- }
- };
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment