Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- using namespace std;
- main(){
- int rozmiar;
- cout<<"Podaj dlugosc tablicy :";
- cin>>rozmiar;
- cout<<"\n\n";
- double tab[rozmiar];
- double *wsk;
- double bufor;
- wsk=tab;
- for(int i=0;i<rozmiar;i++,wsk++){
- cin>>*wsk;
- }
- wsk=tab;
- bufor=tab[(rozmiar-1)];
- for(int i=0;i<(rozmiar-1);i++){
- tab[(i+1)]=*(wsk);
- cout<<*(wsk)<<"|||";
- }
- tab[0]=bufor;
- for(int i=0;i<rozmiar;i++){
- cout<<tab[i]<<"\t";
- }
- cin>>tab[1];
- }
Add Comment
Please, Sign In to add comment