Search Results

Showing results 1 to 3 of 3
Search took 0.01 seconds.
Search: Posts Made By: aznstyles408
Forum: C Oct 15th, 2007
Replies: 1
Views: 1,122
Posted By aznstyles408
So here's my problem. I need to copy paste two 2d arrays together to form a new one.
So in this function I allocate memory for the new array and then I use the memcpy function to start copying. The...
Forum: C Jun 4th, 2007
Replies: 5
Views: 1,237
Posted By aznstyles408
wow, thank you twomers!! it works. Would you mind explaining a little bit of why you needed to add....

static bool is_set;
if ( !is_set )
{
is_set = true;
srand(time(NULL));
}
else
...
Forum: C Jun 4th, 2007
Replies: 5
Views: 1,237
Posted By aznstyles408
I wrote this function to generate random numbers and return it to the calling function

int getCard(void)
{
int range;
int card;

srand(time(NULL));
range = (10 - 1) + 1;
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC