русский
Germany.ruForen → Архив Досок→ Programmierung

Пинайте

28.06.06 22:09
Re: Пинайте
 
  scorpi_ скептик
in Antwort voxel3d 28.06.06 13:39
Поясняю насч╦т форматирования: в Эклипсе я могу вбить такой текст:
В ответ на:
	private int computeArrayIndex( int row, int column ) throws ArrayIndexOutOfBoundsException
{if(row>=dimension_||row<0||column>=dimension_||column<0)throw new ArrayIndexOutOfBoundsException();
return (row>column)?computeArrayIndex(column,row):column+row*dimension_-row*(row+1)/2;}


нажать Ctrl+Shift+F и получить
В ответ на:
	private int computeArrayIndex( int row, int column ) throws ArrayIndexOutOfBoundsException {
if ( row >= dimension_ || row < 0 || column >= dimension_ || column < 0 )
throw new ArrayIndexOutOfBoundsException();
return ( row > column ) ? computeArrayIndex( column, row ) : column + row * dimension_ - row * ( row + 1 ) / 2;
}


В Эмаксе я наш╦л только indentation...
 

Sprung zu