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

cÖеÄתÒå×Ö·ûÎÊÌâ

    '\108'×÷Ϊ×Ö·û³£Á¿¶Ô²»¶Ô£¿
תÒå×Ö·û'\ddd'±íʾ3λ8½øÖÆËù´ú±íµÄ×Ö·û¡£ µ«ÊÇ108²»ÊÇÕýÈ·µÄ8½øÖƱíʾ·½·¨£¬Òò´ËÓ¦¸ÃÊÇ´íÎóµÄ¡£
µ«ÊÇchar a='\108'; Ϊʲô±àÒë²»³ö´íÄØ£¿
\108 û³¬¹ý°¡

  8½øÖÆÀï²»Ó¦¸Ã³öÏÖÊý×Ö8ѽ£¬0-7²Å¶Ô¡£

'\108'ÆäʵÊÇÁ½¸ö×Ö·û£¬Ò»¸öÊÇ'\10'£¬Ò»¸öÊÇ'8'¡£

×Ö·ûÆ¥ÅäÓöµ½ÎÞ·¨Æ¥ÅäµÄÇé¿öʱ£¬¾ÍÍ£Ö¹ÁË¡£

³ýÁË/ddd£¬»¹ÓÐ/dhh,/108±»½âÊÍûºóÕß

'\108¡¯²»ÊÇÒ»¸öתÒå×Ö·û£¬ÒòΪÆäÖеÄÊý×Ö8²»Êǰ˽øÖÆÖеÄÊý£¬Ëü³¬³öÁË0~7

ÒýÓÃ
³ýÁË/ddd£¬»¹ÓÐ/dhh,/108±»½âÊÍûºóÕß

´íÎóÑÔÂÛ£¬Â¥Ö÷×¢Ò⣬´¿Êô¾ÆºóʧÑÔ


  ±àÒëͨ¹ýÁË£¬½á¹ûÊÇ8¡£¸ã²»Ã÷°×Ϊʲô¡£

  turbo cºÍvc++6.0µÄ½á¹û¶¼ÊÇ8¡£Èç¹ûÓÐÕâÑùÒ»¸öÌâÄ¿£¬ÏÂÁв»ÕýÈ·µÄ³£Á¿ÊÇ£ºÆäÖÐÒ»¸öÊÇ¡®\108¡¯,Õâ¸öÊDz»ÊÇÓ¦¸ÃÑ¡Ôñѽ£¿


ÒýÓÃ
  turbo cºÍvc++6.0µÄ½á¹û¶¼ÊÇ8¡£Èç¹ûÓÐÕâÑùÒ»¸öÌâÄ¿£¬ÏÂÁв»ÕýÈ·µÄ³£Á¿ÊÇ£ºÆäÖÐÒ»¸öÊÇ¡®\108¡¯,Õâ¸öÊDz»ÊÇÓ¦¸ÃÑ¡Ôñѽ£¿


Õâ¸öÊôÓÚÕý³£µÄ×Ö·û£¬ÔÚC/C++±ê×¼À¶à×Ö½Ú×Ö·ûÊǺϷ¨µÄ

ÒýÓÃ
\108 û³¬¹ý°¡

ßÀ,·¸ÁËÒ»¸öµÍ¼¶´íÎó¡£
'\108'ʵ¼ÊÉÏÊÇ2¸ö×Ö·û,'\10'ºÍ '8'  '\10'±»ºöÂÔµôÁË

ºÍ´óС¶ËÓйØϵ»¹ÊÇÇ°ÃæµÄ¶¼ºöÂÔÖ»Áô×îºóÒ»¸ö


ÒýÓÃ
²»ÖªµÀLZÊÇʲô±àÒëÆ÷£¬ÎÒÓõÄmingw 3.4.5ÊÇ»áÓо¯¸æµÄ£º
char c = '\108';
warning: multi-character character constant

»


Ïà¹ØÎÊ´ð£º

Ò»¸ö¼òµ¥µÄcÓÎÏ·

13¸öÈËΧ³ÉһȦ£¬´ÓµÚÒ»¸öÈË¿ªÊ¼Ë³Ðò±¨ºÅ1£¬2£¬3¡£·²±¨µ½3ÕßÍ˳öȦ×Ó£¬ÕÒ³ö×îºóÁôÔÚȦ×ÓÖеÄÈËÔ­À´µÄÐòºÅ
½á¹ûÓ¦¸ÃÊÇ13 ¿ÉÎҵijÌÐòµÄ½á¹ûÊÇ11 Ï£ÍûºÃÐÄÈË°ï¸ÄÒ»ÏÂ
#include <stdio.h>
#include < ......

ftpÉÏ´«ÏÂÔØcÎļþ·½Ê½

ÔÚueÖдÓÔ¶³ÌunixÓöþ½øÖÆ·½Ê½ÏÂÔØcÎļþµ½±¾µØ£¬ÐÞ¸ÄÖ®ºóÓöþ½øÖÆ·½Ê½ÉÏ´«µ½unixÖУ¬ÔÙÓÃvi´ò¿ª¸ÃÎļþ£¬Ã¿ÐкóÃæ¾Í»áÓÐÒ»¸ö^MµÄ»»Ðзû£¬Èç¹û²ÉÓÃascii·½Ê½ÏÂÔØ£¬¶þ½øÖÆ·½Ê½ÉÏ´«µÄ»°¾ÍûÓÐ^M£¬ÄÇÇëÎÊÕâÑù»á¶Ô³ÌÐòÎļþ ......

¹ØÓÚthe c program µÄÒ»µÀÌâ!

±àд³ÌÐòdetab, ½«ÊäÈëÖеÄÖƱí·ûÌæ»»³ÉÊʵ±ÊýÄ¿µÄ¿Õ¸ñ£¬Ê¹¿Õ¸ñ³äÂúµ½ÏÂÒ»¸öÖƱí·ûÖÕÖ¹µÄµØ·½¡£¼ÙÉèÖƱí·ûÖÕֹλµÄλÖÃÊǹ̶¨µÄ£¬±ÈÈçÿ¸ônÁоͻá³öÏÖÒ»¸öÖƱí·ûÖÕֹλ¡£
£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­ ......

Çë½ÌC»ù±¾µÄÎÊÌâ

int a ,b ,c ;
scanf("%c\n",&a);
scanf("%c\n",&b);
scanf("%c",&c);          //ºÍÏÂÃæÒ»ÐÐÓÐʲôÇø±ð£¿
//scanf("%c ......

Çócα´úÂë

¸¨Öúϵ¥Á÷³Ì£º
Ò»¡¢ÒÔijһ½»Ò×Æ·ÖÖgµÄµ±Ç°³É½»¼ÛPΪ»ù´¡£¬ÉÏ¡¢Ï¸÷À­¿ªÒ»¶¨µãÊýxË«Ïò¹Òµ¥Tb£¨Âòµ¥£¬¹Òµ¥¼Û¸ñΪBp=P+x£©ºÍTs£¨Âôµ¥£¬¹Òµ¥¼Û¸ñΪSp=P-x£©£¬ÊýÁ¿¾ùΪn¡£Í¬Ê±£¬ÈÔÒÔPΪ»ù´¡£¬É趨TbµÄÖ¹ËðµãÊýLb=P-y¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ