[FilterScript] S74`Register Syst. by RastaOrecha (JM_Millers)
#9

Quote:
Originally Posted by JM_Millers
Посмотреть сообщение
The logic of the code depends on the scripter.
There are beginners who are building the structure of the code is wrong.

For example take the flow chart:



This is:

PHP код:
new 573;
if(
b)
{
    if(
c)
    {
        
printf("c - the largest number");
    }
    else
    {
        
printf("a - the largest number");
    }
}
else
{
    if(
c)
    {
        
printf("b - the largest number");
    }
    else
    {
        
printf("c - the largest number");
    }

and this:

PHP код:
static 573;
if 
>&& *then return printf("a - the largest number");
if 
>&& *then return printf("b - the largest number");
if 
>&& *then return printf("a - the largest number"); 
The same, but in the second example above code logic.
PHP код:
printf("%d"max(max(ab), c)) 
xD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)