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

C ±ê×¼¿â º¯Êý Ô´´úÂëµÄʵÏÖ ºÍ ·ÖÎö

//¿âº¯ÊýʵÏÖ
char *strcat (char *dst, const char *src)
{
  char *p = dst;
  while (*p)
    p++;
  while ((*p++ = *src++))
    ;
  return dst;
}
char *strncat (char *s1, const char *s2, long unsigned int n)
{
  char *dest = s1;
  char c;
  while (*s1) s1++;
 c = '\0';
  while (n > 0)
 {
      c = *s2++;
  *s1++ = c;
      if (c == '\0')
  return dest;
      n--;
    }
  if (c != '\0')
    *s1 = '\0';
  return dest;
}
 
char * strcpy (char *d, const char *s)//
{
  char *r = d;
  while ((*d++ = *s++));
  return r;
}
char *strncpy (char *s1, const char *s2, long unsigned int n)
{
  char *dest = s1;
  for (; *s2 && n; n--) //n Èç¹û´óÓÚs2µÄ³¤¶È£¬ÔòÉèÖÃ0
    *s1++ = *s2++;
  while (n--)
    *s1++ = 0;
  return dest;
}
void * memcpy (void *dst, const void *src, long unsigned int n)
{
  const char *srcp;
  char *dstp;
  srcp = src;
  dstp = dst;
  while (n-- != 0)
    *dstp++ = *srcp++;
  return dst;
}
void *memmove (void *dst, const void *src, long unsigned int n)
{
  const char *srcp;
  char *dstp;
  srcp = src;
  dstp = dst;
  if (srcp < dstp)
    while (n-- != 0)
      dstp[n] = srcp[n];
  else
    while (n-- != 0)
      *dstp++ = *srcp++;
  return dst;
}
void *memset (void *dst, int c, long unsigned int n)
{
  while (n-- != 0)
    n[(char *) dst] = c; // ¼´ (char*)dst[n] = c;
  return dst;
}
¿âº¯ÊýÁ¦Çó¼ò½à£¬Òò´Ë´æÔÚÒ»¶¨µÄ°²È«µÄÎÊÌ⣬ÕâÊÇÔÚʹÓùý³ÌÖÐÌرð×¢ÒâµÄµØ·½¡£Ò²Òò´ËVC2005²ÅÍƳö_sµÄËùνµÄ°²È«º¯Êý¡£Ò²¾ÍÊǶà¼ÓÁËÅжÏλ¡£


Ïà¹ØÎĵµ£º

¹úº½¿Í»õÔËÔö³¤¾¢ ÂòCÂÖ21285


   ¹Û²ì¹ýÈ¥Ò»ÖܺãָţÐÜÖ¤µÄ×ʽðÁ÷Ïò£¬ÆÚ¼ä·Ö±ðÔ¼ÓÐ1800ÍòºÍ850ÍòÔª×ʽð淨Á÷Èëºãָţ֤ºÍÐÜÖ¤£¬ÏÔʾ´óÊÐÔÚ21000µã¹Ø¿ÚÖÁ100ÌìÏßÔ¼21500µã¸½½üÕ­·ùÉÏÂäÆڼ䣬¿´ºÃºÍ¿´å£Á½·½Ã涼ÓÐÖ§³ÖÕߣ¬Î©ÆÕ±éÒÔ¶ÌÏßÂòÂôΪÖ÷¡£µ±´óÊлØÊÔ21000µã¹Ø¿Ú¸½½üʱ£¬Êг¡ÉϵÄÐÜÖ¤³Ö²Ö¼õÉÙ£¬¶øÅ£Ö¤Ôò¼û×ʽðÁ÷È룻µ±´óÊÐÉý½ü100Ì ......

Cµ÷ÓöԻ°¿ò

#include "windows.h"
void main()
{
MessageBox(NULL, "ÄãºÃ°¡£¡", "Ìáʾ", MB_OK);
return 0;

}

ͨ¹ýwindows.hÎļþµ÷ÓÃwindows×Ô´øµÄapiº¯ÊýMessageBox£¬À´Íê³ÉÌáʾ¿ò£¬Ð§¹û°ô
null±íʾ¸½ÊôµÄ´°ÌåΪ¿Õ
MB_OK±íʾ¶Ô»°¿òµÄÀàÐÍ ......

¿¼²éǶÈëʽC¿ª·¢ÈËÔ±µÄ×îºÃµÄ0x10µÀÌâ

±àÕß°´
:·Ç³£»ù±¾¹ØÓÚCÓïÑÔµÄÎÊÌâ,Ò»¸öÐÅÏ¢Àà(¼ÆËã»ú,×ÊѶ¹¤³Ì,µç×Ó¹¤³Ì, ͨÐŹ¤³Ì)רҵµÄ±¾¿Æ±ÏÒµÉúÓ¦¸Ã´ïµ½µÄˮƽ¡£ÌâÄ¿²»ÄÑ,È«²¿¶¼ÄÜ¿ìËٵشðÍ꣬µ±È»Ò²ÐèÒªÒ»¶¨µÄ֪ʶ´¢±¸¡£
¶ÔÓÚ´ó¶àÊýÈË£¬ÎÒÃÇÔ¤ÆÚÄã¿ÉÄÜ´ð´í 3)   4)  15)Ì⣬ËùÒÔ´ð´í3µÀÒÔÄڵģ¬ÎÒÃÇÈÏΪÄãºÜ°ô
´ð´í5µÀÌâÒÔÄÚ£¬ÎÒÃÇÈÏΪÄ㻹²»´í(Ä ......

C ÓïÑÔµÄÃæÏò¶ÔÏó

C ÓïÑÔµÄÃæÏò¶ÔÏó
ÈçÇ°Ëù˵£¬ÃæÏò¶ÔÏóÊÇÒ»ÖÖÈí¼þÉè¼ÆµÄ˼Ï룬ÊÇÓïÑÔÎ޹صġ£ÔÚ±¾½ÚÖУ¬ÎÒ¾ÙÒ»¸öÁ´±í(list) µÄÀý×ÓÀ´ËµÃ÷ÈçºÎÔÚ C ÓïÑÔÖеÄÉè¼Æ³öÓÐÃæÏò¶ÔÏó·ç¸ñµÄ´úÂë¡£
¶¨Òå½Ó¿Ú
½Ó¿ÚÊÇÃæÏò¶ÔÏóÓïÑÔÖеÄÒ»¸ö±È½ÏÖØÒªµÄ¸ÅÄ½Ó¿ÚÖ»¶ÔÍⲿ³ÐŵʵÏָýӿڵÄʵÌå¿ÉÒÔÍê³ÉʲôÑùµÄ¹¦ÄÜ£¬µ«ÊDz»±©Â¶ÊµÏֵķ½Ê½¡£ÕâÑùµÄºÃ´¦ÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ