Forum: C Oct 15th, 2007 |
| Replies: 1 Views: 1,122 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 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 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; |