C_ÅжÏÓï¾äifÓëelseµÄǶÌ×ʹÓÃ
Ô´Âë:
# include <stdio.h>
int main()
{
/* sex´ú±íÊäѪÕßµÄÐÔ±ð£¬weight´ú±íÊäѪÕßµÄÌåÖØ£¬cubage´ú±íÊäѪÁ¿ */
int sex, weight, cubage;
printf("Çë¸ø³öÊäѪÕßµÄÐÔ±ð£¨Å®ÐÔΪ¸ºÊý£©ºÍÌåÖØ£º(ÓöººÅ¸ô¿ª)");
scanf("%d,%d", &sex, &weight);
if(sex >= 0) /* Èô±äÁ¿sexµÄÊýֵΪ·Ç¸ºÊý£¬Ôò±íʾΪÄÐÐÔ */
{
if(weight >= 120)
{
cubage = 200;
printf("´ËÈËÓ¦¸ÃÊäѪ£º%dºÁÉý\n", cubage);
}
else
{
cubage = 180;
printf("´ËÈËÓ¦¸ÃÊäѪ£º%dºÁÉý\n", cubage);
}
}
else /* ·ñÔò£¬±íʾΪŮÐÔ */
{
if(weight >= 100)
{
cubage = 150;
printf("´ËÈËÓ¦¸ÃÊäѪ£º%dºÁÉý\n", cubage);
}
else
{
cubage = 120;
printf("´ËÈËÓ¦¸ÃÊäѪ£º%dºÁÉý\n", cubage);
}
}
return 0;
}
Ïà¹ØÎĵµ£º
SmartGWTÊÇÒ»¸öÀûÓÃGWT·â×°SmartClientµÄ¿ªÔ´ÏîÄ¿¡£ÀàËÆÓÚGWT-Ext¡£SmartClientÊÇÒ»¸öÆóÒµ¼¶µÄajax¿ò¼Ü£¬°üÀ¨·Ç³£³öÉ«µÄUI¿â¡¢¹¤¾ß¿âºÍ¿Í»§¶Ë·þÎñ¶ËÊý¾Ý°ó¶¨µÈ¹¦ÄÜ¡££¨ÒýÓã©
UI¿â£ººÜ¶à¿ò¼ÜµÄUI¿âºÜ³öÉ«£¬¿¼ÂǵĺÜÍêÉÆ£¬ä¯ÀÀÆ÷¼æÈÝÐÔÒ²ºÜºÃ£¬µ«ÍùÍùÖ»ÊÇǰ̨µÄ£¬µ±ÄãÏëÉîÈë×öµãÓ¦ÓÃʱ£¬¾Í»á·¢Ïֺͺǫ́ ......
ͻ 񻣼
¡¡±¾ÎÄÕë¶ÔÄ¿Ç°C/SģʽϱàдµÄÓ¦ÓóÌÐò¿Éά»¤ÐÔ²îµÄÌص㣬Ìá³öÁËÒ»Ì××Ô¶¯ÔÚÏßÉý¼¶µÄ½â¾ö·½°¸£¬·ÖÎöÁËÔÚÏßÉý¼¶µÄÀ§ÄѼ°ÊµÏÖÔÀí£¬²¢¸ø³öÁËʵÏÖÉý¼¶µÄ²¿·Ö´úÂ룬¾ßÓÐʵ¼Ê²Î¿¼¼ÛÖµºÍÏÖʵÒâÒå¡£±¾ÎijÌÐò´úÂë¾ùÔÚ.Net Framework 1.1 ºÍWindows2000ϲâÊÔͨ¹ý¡£
¡¡¹Ø¼ü´Ê£ºC#£»ÔÚÏßÉý¼¶£»×Ô¶¯Éý¼¶£ ......
Ô´Âë:
# include <stdio.h>
int main()
{
/* »»Ðзû'\n'£¬ÓÃÓÚÊä³ö»»ÐÐ */
printf("How are you?\n");
printf("I am fine.\n\n");
/* ºáÏòÌø¸ñ·û'\t'£¬Ê¹Ìøµ½ÏÂÒ»¸öÊä³öÇø */
  ......
Ô´Âë:
# include <stdio.h>
int main()
{
int x, y, z, mid, dec;
printf("ÇëÈÎÒâÊäÈëÈý¸öÕûÊý£º\n");
scanf("%d %d %d", &x, & ......