Re: Nutteloze stukjes code :D
Geplaatst: 28 feb 2012, 18:31
Waarmee?
Community voor Spotnet liefhebbers! Download Spotnet
https://spot-net.nl/forums/
Ik wist dat ik gelijk hadVPCF1 schreef:Jonguh.......
Alle code na if k==1 wordt nooit uitgevoerd.
Ging toch om nutteloze code?????
In principe werkt php hier hetzelfde als c++, behalve dan de $.Der Blauschnabel schreef:Ik wist dat ik gelijk hadVPCF1 schreef:Jonguh.......
Alle code na if k==1 wordt nooit uitgevoerd.
Ging toch om nutteloze code?????
Als je het over C++ had:
en voor php:
http://php.net/manual/en/control-structures.for.php
of was dit weer een andere C based taal (waar het waarschijnlijk alsnog uitgevoerd word )
Code: Selecteer alles
#include <iostream>
using namespace std;
void main () {
start:
cout << "] [" << endl;
cout << " ] [ " << endl;
cout << " ] [ " << endl;
cout << " ] [ " << endl;
cout << " ] [ " << endl;
cout << " [ ] " << endl;
cout << " [ ] " << endl;
cout << " [ ] " << endl;
cout << "[ ]" << endl;
cout << " [ ] " << endl;
cout << " [ ] " << endl;
cout << " [ ] " << endl;
cout << " ] [ " << endl;
cout << " ] [ " << endl;
cout << " ] [ " << endl;
cout << " ] [ " << endl;
cout << "] [" << endl;
goto start;
}