Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
polja_z5.cpp
00001 #include <iostream> 00002 #include <ctime> 00003 #include <cstdlib> 00004 00005 00006 using namespace std; 00007 00008 00009 00010 int randomizer (){ 00011 00012 int a = 20,b =40; 00013 00014 return (rand() % (b-a+1)+a); 00015 } 00016 00017 int main (){ 00018 00019 int polje[10]; 00020 int* p = polje; 00021 00022 00023 for (int i = 0; i < 10 ; i++){ 00024 00025 p[i] = randomizer(); 00026 cout << p[i]<< endl;; 00027 00028 } 00029 00030 00031 } 00032
Generated on Thu Jul 14 2022 21:05:48 by
1.7.2