吉里吉里2 Ver2.32r2に付属のドキュメント追加
This commit is contained in:
61
docs/tjs2doc/contents/for.html
Normal file
61
docs/tjs2doc/contents/for.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="Shift_JIS"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
|
||||
<!-- generated by to_html.pl from for.xml -->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
|
||||
<title>for �X�e�[�g�����g</title>
|
||||
<meta name="author" content="W.Dee" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link href="browser.css" type="text/css" rel="stylesheet" title="�g���g���֘A���t�@�����X�p�W���X�^�C��" />
|
||||
<link href="mailto:[email protected]" rev="Made" />
|
||||
<link href="index.html" target="_top" rel="Start" title="�g�b�v�y�[�W" />
|
||||
</head>
|
||||
<body>
|
||||
<h1><a id="id193" name="id193">for �X�e�[�g�����g</a>
|
||||
</h1><div class="para"><div>
|
||||
�@<code class="inlinecode">for</code> �X�e�[�g�����g�́A<code class="inlinecode">while</code> �X�e�[�g�����g�Ɏ��Ă��܂����A���蕡�G�Ȃ��̂ł��B<br />
|
||||
�@�\���͈ȉ��̒ʂ��ł��B<br />
|
||||
<code class="inlinecode">for(���P��;���Q��;���R��)
|
||||
�X�e�[�g�����g�܂��̓u���b�N</code><br />
|
||||
�@�����ŁA���P�߂ɂ́A���[�v�ɓ����O�Ɏ��s�����������w�肵�܂��B�����ɂ͕ϐ��錾���s�����Ƃ��ł��āA�����Ő錾�����ϐ��́A���[�v�̊Ԓ��L���Ȃ��̂Ƃ����܂� ( ���[�v�����ƍ폜�����܂� )�B�ȗ����邱�Ƃ��ł��܂��B<br />
|
||||
<br />
|
||||
�@���Q�߂ɂ͏��������w�肵�܂��B���̏������� <code class="inlinecode">true</code> �̊ԁA�X�e�[�g�����g�܂��̓u���b�N���J���Ԃ����s�����܂��B�ȗ������ƁA���ɐ^�ł����ƌ��Ȃ����܂��B<br />
|
||||
<br />
|
||||
�@���R�߂ɂ́A�X�e�[�g�����g�܂��̓u���b�N�̍Ō��Ŏ��s�����������w�肵�܂��B�ȗ����邱�Ƃ��ł��܂��B<br />
|
||||
<br />
|
||||
�@�����Ƃ��ẮA<br />
|
||||
(1) �܂��A���P�߂����s����<br />
|
||||
(2) ���Q�߂��]�����A�U�Ȃ��X�e�[�g�����g�܂��̓u���b�N�͕]�����ꂸ�ɏI����<br />
|
||||
(3) �X�e�[�g�����g�܂��̓u���b�N�����s����<br />
|
||||
(4) ���R�߂����s����<br />
|
||||
(5) ���Q�߂��]�����A�U�Ȃ����[�v����<br />
|
||||
(6) (3) �����J���Ԃ�<br />
|
||||
<br />
|
||||
�@�u���b�N���� <code class="inlinecode"><a id="id194" name="id194" class="targanchor"><dfn>break</dfn></a></code> �X�e�[�g�����g���������ꍇ�́A���̎��_�Ń��[�v���甲���܂��B<code class="inlinecode"><a id="id195" name="id195" class="targanchor"><dfn>continue</dfn></a></code> �X�e�[�g�����g���������ꍇ�́A(4) �ɔ��т܂��B<br />
|
||||
<br />
|
||||
|
||||
<br />
|
||||
<code class="bq"><span class="weak">��:</span><br /> var i,a=1;<br />
|
||||
for(i=1;i<5;i++)<br />
|
||||
{<br />
|
||||
a*=i;<br />
|
||||
}<br />
|
||||
<br />
|
||||
var i;<br />
|
||||
for(i=0;i<10;i++)<br />
|
||||
{<br />
|
||||
if(obj[i]==0) continue; <span class="comment">// continue ���� i++ �����s������</span><br />
|
||||
if(obj[i]==1) break; <span class="comment">// break �����Ƃ��̏��Ŕ�����</span><br />
|
||||
func(obj[i]);<br />
|
||||
}<br />
|
||||
</code>
|
||||
<br />
|
||||
|
||||
</div></div>
|
||||
<script type="text/javascript" charset="Shift_JIS" src="documentid.js" ></script>
|
||||
<script type="text/javascript" charset="Shift_JIS" src="postcontent.js" ></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user