The Dink Network

Reply to Re: i could use some help

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
May 29th 2008, 07:03 PM
spike.gif
Yes, you are right, metatarasal.

DinkDude was quoting the DinkC reference, but the DinkC reference lies.

DinkC reference example:
void talk(void)
{
int &temp = 0;
// This will not work!!
if (&life == &lifemax)
&temp = 1;
}


Correction:
void talk(void)
{
int &temp = 0;
// This will not work if you're hurt!!
if (&life == &lifemax)
&temp = 1;
}


I can't remember ever running into a problem with variables and no curly braces, despite not having used them for many years. Putting them on the same line is a different story, though, that won't work nearly as always.