morsisko

Untitled

Nov 4th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. void printInt(int toPrint){
  2. std::cout << toPrint << std::endl;
  3. }
  4.  
  5. int tablicaIntow[10];
  6.  
  7. //i teraz
  8. for (int i = 0; i != tablicaIntow.size(); i++)
  9. {
  10. printInt(tablicaIntow[i]);
  11. }
  12.  
  13. // to to samo co
  14.  
  15. foreach (int dowolnyInt in tablicaIntow){
  16. printInt(dowolnyInt);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment