Forum: C++ Apr 6th, 2008 |
| Replies: 15 Views: 6,581 thank you...
int lower limit,upper limit;
int range=upper limit-lower limit;
int number;
for(int i=0;i<20;i++)
{
number=lower limit+(rand()%range);
cout<<number<<endl;
}
thats what i used in... |
Forum: C++ Apr 6th, 2008 |
| Replies: 8 Views: 4,355 hi
i need to compute the cpu usage time for my function calls...how do i do that in linux with C++ as my programming language.
Thanks in advance. |
Forum: C++ Apr 5th, 2008 |
| Replies: 15 Views: 6,581 hi i need to generate numbers in the given range....here i have lower as well as upper limit...
how do i dp that...
thanks |