Programmierstil - IPD Snelting
Programmierstil - IPD Snelting
Programmierstil - IPD Snelting
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
<strong>Programmierstil</strong><br />
Beispiel 5 - Auch schlecht<br />
Programmlayout<br />
while ( length < maxLength )<br />
{<br />
if ( found )<br />
// Leave the method if we have<br />
// found what we searched<br />
{<br />
return;<br />
}<br />
}<br />
else<br />
// Set found to the result of the call<br />
// of the check method<br />
{<br />
found = check ( list [ length ] );<br />
length = length + 1;<br />
}<br />
Prof. Dr.-Ing. G. <strong>Snelting</strong> (Uni Karlsruhe) c○2008 by <strong>IPD</strong> <strong>Snelting</strong> – Programmieren WS 2008/2009 14 / 31