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

C_Êý¾ÝÀàÐÍת»»

 Ô´Âë:
# include <stdio.h>
 
int main()
{
    /* ¶¨Òå±äÁ¿²¢¸³³õÖµ */
     int    a = 5;       
    char   c = 'a';   // 'a'µÄASCÂëµÄֵΪ97
    float  f = 5.3;     
    double m = 12.65; 
    double result;
     
    /* ͬÀàÐÍÊý¾Ý¼ä½øÐÐÔËËã²¢Êä³ö½á¹û */
    printf("a + c = %d\n", a + c);  // 97+5=102
    printf("a + c = %c\n", a + c);  // 102¶ÔÓ¦µÄASCIIÂë×Ö·ûΪ'f'
    printf("f + m = %f\n", f + m);  // 5.3+12.65=17.95
 
    /* ²»Í¬ÀàÐÍÊý¾Ý¼ä½øÐÐÔËËã²¢Êä³ö½á¹û */
    printf("a + m = %f\n", a + m);  //5+12.65=17.65
    printf("c + f = %f\n", c + f);  //97+5.3=102.3
 
    /* ½«ÉÏÊöËĸö±äÁ¿½øÐлìºÏÔËË㣬²¢Êä³ö½á¹û */
    result = a + c * (f + m);
    printf("double = %f\n", result);  //5+97*(5.3+12.65)=1746.15
    return 0;
}


Ïà¹ØÎĵµ£º

Linux»·¾³MySQLµÄC±à³ÌÆð²½

Ê×ÏÈ°²×°±ØÐèµÄ¿ª·¢
°ü
sudo apt-get install gcc g++ libgcc1 libg++ make gdb
°²×°MYSQLµÄCÓïÑÔ¿ª·¢°ü
sudo apt-get install libmysql++-dev libmysql++2c2a libmysqlclient15-dev libmysqlclient15off
°ÑlibÎļþ¿½±´µ½¹«ÓÃ
sudo cp /usr/lib/mysql/* /usr/lib/
½¨Á¢Ò»¸öÐÂÎļþtest.cpp
vim test.cpp
ÊäÈëÄÚÈÝ
......

smartgwt (C)

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

ADC0809 C³ÌÐò

 #include<reg52.h>
#include<intrins.h>
#define uint  unsigned int
#define uchar unsigned char
uint date;
uchar mm=0,n=0;
uint k1,k2,k3,k4,k5,k6;
uchar code b[]={
    0x3f,0x06,0x5b,0x4f,0x66,   //0,1,2,3,4,
    0x6d,0x7d,0x07,0x7 ......

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

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