Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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 (C)

   SmartGWTÊÇÒ»¸öÀûÓÃGWT·â×°SmartClientµÄ¿ªÔ´ÏîÄ¿¡£ÀàËÆÓÚGWT-Ext¡£SmartClientÊÇÒ»¸öÆóÒµ¼¶µÄajax¿ò¼Ü£¬°üÀ¨·Ç³£³öÉ«µÄUI¿â¡¢¹¤¾ß¿âºÍ¿Í»§¶Ë·þÎñ¶ËÊý¾Ý°ó¶¨µÈ¹¦ÄÜ¡££¨ÒýÓã©
  UI¿â£ººÜ¶à¿ò¼ÜµÄUI¿âºÜ³öÉ«£¬¿¼ÂǵĺÜÍêÉÆ£¬ä¯ÀÀÆ÷¼æÈÝÐÔÒ²ºÜºÃ£¬µ«ÍùÍùÖ»ÊÇǰ̨µÄ£¬µ±ÄãÏëÉîÈë×öµãÓ¦ÓÃʱ£¬¾Í»á·¢Ïֺͺǫ́ ......

ÓÃC# ʵÏÖC/SģʽÏÂÈí¼þ×Ô¶¯ÔÚÏßÉý¼¶

 Õª   Òª£º
¡¡±¾ÎÄÕë¶ÔÄ¿Ç°C/SģʽϱàдµÄÓ¦ÓóÌÐò¿Éά»¤ÐÔ²îµÄÌص㣬Ìá³öÁËÒ»Ì××Ô¶¯ÔÚÏßÉý¼¶µÄ½â¾ö·½°¸£¬·ÖÎöÁËÔÚÏßÉý¼¶µÄÀ§ÄѼ°ÊµÏÖÔ­Àí£¬²¢¸ø³öÁËʵÏÖÉý¼¶µÄ²¿·Ö´úÂ룬¾ßÓÐʵ¼Ê²Î¿¼¼ÛÖµºÍÏÖʵÒâÒå¡£±¾ÎijÌÐò´úÂë¾ùÔÚ.Net Framework 1.1 ºÍWindows2000ϲâÊÔͨ¹ý¡£
¡¡¹Ø¼ü´Ê£ºC#£»ÔÚÏßÉý¼¶£»×Ô¶¯Éý¼¶£ ......

C_תÒå×Ö·û

 Ô´Âë:
# include <stdio.h>
 
int main()
{
    /* »»Ðзû'\n'£¬ÓÃÓÚÊä³ö»»ÐÐ */
    printf("How are you?\n");
    printf("I am fine.\n\n");
 
    /* ºáÏòÌø¸ñ·û'\t'£¬Ê¹Ìøµ½ÏÂÒ»¸öÊä³öÇø */
  ......

C_ÅжÏÓï¾äifµÄÒ»°ãʹÓÃ

Ô´Âë:
# include <stdio.h>
     
int main()
{
        int x, y, z, mid, dec;
        printf("ÇëÈÎÒâÊäÈëÈý¸öÕûÊý£º\n");
        scanf("%d %d %d", &x, & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ