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

C_¸Ä±ä×Ö·û±àÂëʵÏÖ¼òµ¥¼ÓÃÜ

 Ô´Âë:
# include <stdio.h>
 
int main()
{
    /* ¶¨Òå×Ö·ûÐͱäÁ¿£¬²¢¸øËüÃǸ¶³õÖµ */
    char c1, c2, c3, c4, c5, c6, c7;
    c1 = 'C';
    c2 = 'h';
    c3 = 'i';
    c4 = 'n';
    c5 = 'e';
    c6 = 's';
    c7 = 'e';
 
    /* Êä³öÔ­Âë */
    printf("Ô­ÂëÊÇ£º%c%c%c%c%c%c%c\n", c1, c2, c3, c4, c5, c6, c7);
 
    /* ¶Ô×Ö·û½øÐÐÒëÂëÔËËã */
    c1 = c1 + 6;
    c2 = c2 + 6;
    c3 = c3 + 6;
    c4 = c4 + 6;
    c5 = c5 + 6;
    c6 = c6 + 6;
    c7 = c7 + 6;
 
    /* Êä³öÒëÂë½á¹û */
    printf("ÃÜÂëÊÇ£º%c%c%c%c%c%c%c\n", c1, c2, c3, c4, c5, c6, c7);
    return 0;
}


Ïà¹ØÎĵµ£º

ÍÆ¼ö¼¸¸öÍøÉϵÄC/C++×ÊÔ´(zt)

 2009-11-01   17:31:00
1¡¢Standard C£¬°üÀ¨»ù±¾µÄÓï·¨¶¨Ò壬¿âº¯Êý²Î¿¼
http://www-ccs.ucsd.edu/c/
»òÕß
The C Library Reference Guide
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/
2¡¢The UNIX Programming Environment
http://www.iu.hio.no/~mark/unix/unix_toc.html
»ò
The Art of ......

ÃÀ¹úרÀû·¨Ìõ¿î102(c),102(d)

www.us-ip.com
ÃÀ¹úרÀû·¨Ìõ¿î102(c),102(d)
35 U.S.C. 102:
A person shall be entitled to a patent unless -
(c) he has abandoned the invention
102(c)Ìõ¿îÖ¸³öÈç¹û·¢Ã÷ÈËÒÅÆúÁË·¢Ã÷£¬ÄÇô·¢Ã÷È˽«²»ÄÜ»ñµÃÃÀ¹úרÀû¡£·¢Ã÷ÈËÒÅÆú·¢Ã÷±ØÐëÊǹÊÒâµÄÐÐΪ£¬²¢ÇÒÒâͼ½«ÒÅÆúµÄ·¢Ã÷·îÏ׸øÉç»á¡£·¢Ã÷È˲»Ò»¶¨ÐèÒª¹«¿ªÐûÊ¾Õ ......

extern ¡°C¡±Ó÷¨

ÓÃÒ»¾ä»°¸ÅÀ¨extern “C”Õâ¸öÉùÃ÷µÄÕæÊµÄ¿µÄ¾ÍÊÇʵÏÖC++ÓëC¼°ÆäËüÓïÑԵĻìºÏ±à³Ì¡£
extern "C"µÄ¹ßÓ÷¨
£¨1£©ÔÚC++ÖÐÒýÓÃCÓïÑÔÖеĺ¯ÊýºÍ±äÁ¿£¬ÔÚ°üº¬CÓïÑÔÍ·Îļþ£¨¼ÙÉèΪcExample.h£©Ê±£¬Ðè½øÐÐÏÂÁд¦Àí£º
extern "C"
{
££i nclude "cExample.h"
}
¶øÔÚCÓïÑÔµÄÍ·ÎļþÖУ¬¶ÔÆäÍⲿº¯ÊýÖ»ÄÜÖ¸¶¨ÎªexternÀà ......

C_¹ØÏµºÍÂß¼­ÔËËã

 Ô´Âë:
# include <stdio.h>
 
int main()
{
    /* ¶¨ÒåÒ»¸öÕûÊýÀàÐ͵ıäÁ¿£¬ÓÃÀ´´æ·ÅºóÃæËãʽµÄÖµ */
    int logic;    
 
    int a = 1;
    int b = 2;
    int c = 3;
 
&n ......

C_ÆÕͨλÔËËã

 Ô´Âë:
# include <stdio.h>
 
int main()
{
    /* ¶¨ÒåÁËÒ»¸öÎÞ·ûºÅ×Ö·ûÐͱäÁ¿£¬´Ë±äÁ¿Ö»ÄÜÓÃÀ´´æ´¢ÎÞ·ûºÅÊý */
    unsigned char result;
    
    int a, b, c, d;
    a = 2;
    b = 4; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ