![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Feb 2008
Posts: 18
Rep Power: 0
![]() |
How to name queues using a "for" loop??
Hi there,
I'm facing some trouble with creating and naming queues in C language. I need to create five queues using a "for" loop, and with each iteration of the "for" loop, a created queue will be given a name depending on the index of the iteration. It should look like something like this: for(i=0;i<5;i++)
{
q(i) = CreateQueue(size 2);
}At the first iteration, I should get a queue called q0 or something, then q1.... I need this because, at a later stage in my program, i need to access,through a "for" loop, a particular queue depending on the index of the iteration. Does anybody know how i can do this??.... Thanks |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Correct name for a variable length loop? | funkey_monkey | Other Programming Languages | 6 | Jun 2nd, 2007 1:50 AM |
| server-infinite loop | programmingnoob | C | 19 | Oct 1st, 2006 11:52 PM |
| Value of index incorrect after loop | aznluvsmc | C | 13 | Nov 6th, 2005 10:47 PM |
| WinSock accept() hangs program in Do loop... | layer | C++ | 5 | Apr 29th, 2005 12:28 PM |
| Timing loop problems | badbasser98 | C++ | 11 | Mar 10th, 2005 9:30 PM |