The Dink Network

Reply to Re: Dink Won't Freeze During Intro

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:
 
 
September 12th 2006, 11:26 AM
pillbug.gif
Drink
Peasant He/Him Chile
Don't drink 
So much people repeat this error ( the "{" and "}").

If I could recommend a good practice, it would be to:

- After writing the usual "void main" or similar, to immediately put the "{" and "}", and THEN writing between them.

Example:
void main (void)
{
//write here
}

- Same for other situations, like "ifs", even if you have not write anything on them.

Example
...
{
if (&A==0)
{
if (&B==1)
{
if (&C==2)
{
}
}
}
}

This method really helps to avoid getting those unfindable problems caused by missing braces (very common to people that is learning to make a DMod, as I see).