Re: Critical section ?
From: Mihajlo Cvetanovic (mac_at_RnEeMtOsVeEt.co.yu)
Date: 12/21/04
- Previous message: Pascal: "Disable the Start button"
- In reply to: Jason: "Critical section ?"
- Next in thread: Jason: "Re: Critical section ?"
- Reply: Jason: "Re: Critical section ?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 21 Dec 2004 09:41:01 +0100
Jason wrote:
> I recently was asked to answer this
>
> ...
>
> void IncrementIndex(int iIndex)
> {
> ...
> g_nNums[nIndex++];
> ...
> }
You have used both nIndex and iIndex in ambiguous way, so I'll take it
it's the same variable. Shouldn't "int iIndex" actually be "int &iIndex"?
- Previous message: Pascal: "Disable the Start button"
- In reply to: Jason: "Critical section ?"
- Next in thread: Jason: "Re: Critical section ?"
- Reply: Jason: "Re: Critical section ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|