JSTL ʹÓà c:forEach
ÔÚ Web Ó¦ÓóÌÐò»·¾³ÖУ¬µü´úÖ÷ÒªÓÃÓڷôæºÍÏÔʾÊý¾Ý¼¯£¬Í¨³£ÊÇÒÔÁбí»ò±íÖеÄһϵÁÐÐеÄÐÎʽÏÔʾ¡£ÊµÏÖµü´úÄÚÈݵÄÖ÷Òª JSTL ²Ù×÷ÊÇ <c:forEach>; ¶¨ÖƱê¼Ç¡£¸Ã±ê¼ÇÖ§³ÖÁ½ÖÖ²»Í¬ÑùʽµÄµü´ú£ºÕûÊý·¶Î§Éϵĵü´ú£¨ÀàËÆ Java ÓïÑ﵀ for Óï¾ä£©ºÍ¼¯ºÏÉϵĵü´ú£¨ÀàËÆ Java ÓïÑ﵀ Iterator ºÍ Enumeration Àࣩ¡£
½øÐÐÕûÊý·¶Î§µü´úÓõ½ÁËÇåµ¥ 1 ÖÐËùʾµÄ <c:forEach>; ±ê¼ÇµÄÓï·¨¡£begin ºÍ end ÊôÐÔҪôÊǾ²Ì¬ÕûÊýÖµ£¬ÒªÃ´ÊÇ¿ÉÒԵóöÕûÊýÖµµÄ±í´ïʽ¡£ËüÃÇ·Ö±ðÖ¸¶¨µü´úË÷ÒýµÄ³õʼֵÒÔ¼°µü´úË÷ÒýµÄÖÕÖ¹Öµ¡£µ±Ê¹Óà <c:forEach>; ÔÚÕûÊý·¶Î§ÄÚ½øÐеü´úʱ£¬ÕâÁ½¸öÊôÐÔÊDZØÐèµÄ£¬¶øÆäËüËùÓÐÊôÐÔ¶¼ÊÇ¿ÉÑ¡µÄ¡£
Çåµ¥ 1. ͨ¹ý <c:forEach>; ²Ù×÷½øÐÐÊý×Öµü´úµÄÓï·¨
<c:forEach var="name" varStatus="name"
begin="expression" end="expression" step="expression">;
body content
</c:forEach>;
µ±³öÏÖ step ʱ£¬ËüÒ²±ØÐëÊÇÕûÊýÖµ¡£ËüÖ¸¶¨Ã¿´Îµü´úºóË÷ÒýµÄÔöÁ¿¡£ÕâÑù£¬µü´úË÷Òý´Ó begin ÊôÐÔµÄÖµ¿ªÊ¼£¬ÒÔ step ÊôÐÔµÄֵΪÔöÁ¿½øÐеÝÔö£¬ÔÚµü´úË÷Òý³¬¹ý end ÊôÐÔµÄֵʱֹͣµü´ú¡£×¢£ºÈç¹ûÊ¡ÂÔÁË step ÊôÐÔ£¬ÄÇô²½³¤È±Ê¡Îª 1¡£
Èç¹ûÖ¸¶¨ÁË var ÊôÐÔ£¬ÄÇô½«»á´´½¨Ò»¸ö´øÓÐÖ¸¶¨Ãû³ÆµÄ²¢ÏÞ¶¨ÁË×÷ÓÃÓòµÄ±äÁ¿£¬²¢½«Ã¿´Îµü´úµÄµ±Ç°Ë÷ÒýÖµ¸³¸ø¸Ã±äÁ¿¡£ÕâÒ»ÏÞ¶¨ÁË×÷ÓÃÓòµÄ±äÁ¿¾ßÓÐǶÌ×ʽ¿ÉÊÓÐÔ — Ö»¿ÉÒÔÔÚ <c:forEach>; ±ê¼ÇÌåÄÚ¶ÔÆä½øÐзÃÎÊ¡££¨ÎÒÃǺܿ콫ÌÖÂÛ¿ÉÑ¡ÊôÐÔ varStatus µÄÓ÷¨¡££©Çåµ¥ 2 ÏÔʾÁ˶ÔÒ»×é¹Ì¶¨ÕûÊýÖµ½øÐеü´úµÄ <c:forEach>; ²Ù×÷ʾÀý¡£
Çåµ¥ 2. ʹÓà <c:forEach>; ±ê¼ÇÀ´Éú³É±íÁÐÊý¾Ý£¬ÕâЩÊý¾Ý¶ÔÓ¦ÓÚijһ·¶Î§ÄÚµÄÊýÖµ¡£
<table>;
<tr>;<th>;Value</th>;
<th>;Square</th>;</tr>;
<c:forEach var="x" begin="0" end="10" step="2">;
<tr>;<td>;<c:out value="${x}"/>;</td>;
<td>;<c:out value="${x * x}"/>;</td>;</tr>;
</c:forEach>;
</table>;
Èçͼ 3 ÖÐËùʾ£¬ÉÏÃæµÄʾÀý´úÂëÉú³ÉÁËÒ»ÕÅ±í£¬ÏÔʾǰÎå¸öżÊý¼°Æäƽ·½¡£ÕâÊÇͨ¹ý½« begin ºÍ step ÊôÐÔÖµÖ¸¶¨Îª 2£¬¶ø½« end ÊôÐÔÖµÖ¸¶¨Îª 10 ʵÏֵġ£´ËÍ⣬Óà var ÊôÐÔ´´½¨ÓÃÓÚ´
Ïà¹ØÎĵµ£º
Ò». ÔÚcÖзÖΪÕ⼸¸ö´æ´¢Çø
1.Õ» - ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å
2.¶Ñ - Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ
3.È«¾ÖÇø£¨¾²Ì¬Çø£©£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬Î´³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£- ³ÌÐò½áÊøÊÍ·Å
4.ÁíÍ ......
ͻ񻣼
±¾ÎÄ´Ó½éÉÜ»ù´¡¸ÅÄîÈëÊÖ£¬Ì½ÌÖÁËÔÚC/C++ÖжÔÈÕÆÚºÍʱ¼ä²Ù×÷ËùÓõ½µÄÊý¾Ý½á¹¹ºÍº¯Êý£¬²¢¶Ô¼Æʱ¡¢Ê±¼äµÄ»ñÈ¡¡¢Ê±¼äµÄ¼ÆËãºÍÏÔʾ¸ñʽµÈ·½Ãæ½øÐÐÁ˲ûÊö¡£±¾ÎÄ»¹Í¨¹ý´óÁ¿µÄʵÀýÏòÄãչʾÁËtime.hÍ·ÎļþÖÐÉùÃ÷µÄ¸÷ÖÖº¯ÊýºÍÊý¾Ý½á¹¹µÄÏêϸʹÓ÷½·¨¡£
¹Ø¼ü×Ö£ºUTC£¨ÊÀ½ç±ê׼ʱ¼ä£©£¬Calendar Time£¨ÈÕÀúʱ¼ä£©£¬epoch£¨Ê±¼ä ......
££i nclude <stdio.h>
££i nclude <dos.h>
££i nclude <conio.h>
££i nclude <graphics.h>
££i nclude <stdlib.h>
#ifdef __cplusplus
#define __CPPARGS ...
#else
#define __CPPARGS
#endif
#define MINBOXSIZE ......
Ò» Ê×ÏÈ×ܽáÒ»ÏÂSD¿¨µÄдÎļþ£¬Ðè×¢ÒâµÄÊÂÏîÈçÏ£º
1. FAT16 дµÄʱºò±ØÐëÖÁÉÙдһ¸öÉÈÇø¡£
2. FAT±í²»ÄÜƵ·±µÄ¶Áд£¬·ñÔò»á³ö´í¡£ÉêÇëеÄÒ»¸ö´Øʱ£¬Ö±½ÓÔÚÕâ¸ö´ØÀïÃ棨¼´ÏÂÒ»´ØºÅ£©µÄдΪ0XFFFF¡£
3. FATËƺõ±ØÐëת»¯³Éu16²ÅÄÜд¡£Ã²ËÆÊÇÕâÑù£¬¾ßÌåû×Ðϸ¿´¡£
4. »ñȡеÄË÷Òý´ØµÄʱºò£¬Ö±½Ó´Ó¾ÉµÄË÷Òý´ØµÄºóÃæ ......