Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. void wpisz(float *T)
  4. {
  5. float x=0.5;
  6. for(int i=0;i<100;i++)
  7. {
  8. T[i]=x;
  9. x+=0.5;
  10.  
  11. }
  12. }
  13. void wypisz(float *T)
  14. {
  15. for(int i=0;i<100;i++)
  16. {
  17. cout<<T[i]<<endl;
  18. }
  19. }
  20. main()
  21. {
  22. float tab[100];
  23. wpisz(tab);
  24. wypisz(&tab[0]);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement