Reply to Re: i could use some help
If you don't have an account, just leave the password field blank.
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.

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.