binaire code

Gestart doorLarsnl18 reacties96 weergaven

19 berichten · pagina 2 van 2

Berichten
449
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nou, wie kan er voor mij zeggen wat 1100101 betekent? wink
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Er is een PHP functie voor emo
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]next[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]to[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]bin[/COLOR][COLOR= #007700])
    {[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/decbin"]decbin[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]getal[/COLOR][COLOR= #007700]]);
    }[/COLOR]
    [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]to[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]dec[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/bindec"]bindec[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]getal[/COLOR][COLOR= #007700]]);
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]FUNCTION ERROR[/COLOR][COLOR= #007700];
    }
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
?>
<form method="post" action="">
<table>
Getal:<input type="text" name="getal" />
<br />
Naar <select name="to">
<option value="bin">binair</option>
<option value="dec">Decimaal</option>
</select>
<input type="submit" name="next" value="Reken" />
</table>
</form>
[COLOR= #0000BB]<?[/COLOR]
[COLOR= #007700]}[/COLOR]
?>


Zeer oude code emo
toevoeging op 6 oktober 2012, 17:33:09:
Is zo brak als iets, maar goed voor persoonlijk gebruik wink
0
Berichten
449
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Fanorg schreef:
101 biggrin
Som is:
1
0
4
0
0
32
64
----+
101

// Als je decimaal wou weten

Fout! biggrin
De betekenis staat in dit nummer wink yummie
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Algemene NatuurWetenschappen
Afbeelding

1024 512 256 128 64 32 16 8 4 2 1 0

Je begint dus inderdaad rechts.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren