Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   C++ (http://www.domainnameforum.org/forumdisplay.php?f=123)
-   -   Random C++ array (http://www.domainnameforum.org/showthread.php?t=3931)

C++ 06-27-2009 09:02 AM

Random C++ array
 
I need help on two assignments that are due: 1. Initializing the elements of an array a1 and size n randomly, so that its elements have values between [1-45]. 2. Initializing the elements of an array a2 and size n randomly, so that each element is between 0 and 50 and is a multiple of 5.


All times are GMT -4. The time now is 02:49 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.