Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : c

CµÄÖ¸ÕëÎÊÌâ

main()
{
int n, sleng();
char astr[50];

while(1){
scanf("%s",astr);
n = sleng(astr);
printf("length --> %d\n",n);
}
}

int sleng(char *s)
{
int n = 0;
while(*s++) n++;
return(n);
}
¼ÆËãÊäÈ볤¶ÈµÄ³ÌÐò£¬Õâ¸ö³ÌÐ ......

ÔÚwindows7ϵÄC/C++ - C/C++ / CÓïÑÔ

VC6.0²»ÄÜÓã¬VSϵÁÐÌ«´ó£¬Äܲ»ÄÜÍÆ¼ö¼¸¿îСÇɵÄC/C++µÄIDE
ûÓС£Â¥ÏµÄÀ¬»ø»Ø´ð

http://topic.csdn.net/u/20100105/09/c854cc79-c8b0-4c1a-a8cf-9ab001ab13a5.html?76698

VC6.0ÎÒwindows7ÄÜÓÃ
ÆäËûµÄ
DEVc++ codeblocks Eclipse

VC6²»¼æÈÝ£¬µ«ÊÇ»¹ÊÇÄÜÓõ쬶øÆäËûµÄ£¬VS2008¾ÍºÜºÃÓÃÁË¡£

ÎÒµÄÊÇwindows 7 ......

ÔõÑù°ÑC´®Êײ¿µÄ0È¥µô

chrÊÇÒ»¸öC´®£¬ÎÒÏë°Ñ´®Êײ¿µÄ0È¥µô

while(*chr=='0'){++chr;}

Èç¹ûÕâ¸ö´®Ê×ûÓÐ0»¹ºÃ£¬ÓÐ0µÄ»°ÔËÐÐʱ»á³öÏÖ´íÎó

ÏÔʾÊÇdbgheap.cµÄ1044ÐгöÏÖ_CrtIsValidHeapPointer´íÎó
ÄãµÄchrÊÇÊý×éÃû°É£¬ÊÇÖ»¶ÁµÄ£¬²»ÄܽøÐÐ++²Ù×÷


ÕâÑù½â¾ö²»Ò»¶¨ºÃ£¬Äã¿ÉÒÔÁ±ÙÄÚ´æ¿Õ¼äÀ´±£´æ×Ö·û´®

C´®Ê× ......

C½á¹¹ÌåÖ¸ÕëµÄÎÊÌâ

Çë´ó¼Ò°ïСµÚ½â´ðÒ»ÏÂÈçÏÂÎÊÌâ
struct  lnode{
    elentype data;
    struct  lnode *next;
};
typedef  struct lnode *Lnode;
Îĸö´æÔÚ.hÎļþÀï
void main(){
    Lnode  T;
    char  item;
  initlist(&T ......

cµÄÒ»¸öÖ¸ÕëµØÖ·ÎÊÌâ

#include <stdio.h>
int main()
{
unsigned char *p1;
    unsigned long *p2;
    p1=(unsigned char *)0x801000;
    p2=(unsigned long *)0x810000;
printf("%d\n",p2+5);
return 0;
}
Êä³öÊÇ8454164£¬¼´Ox810014
ÎÒ¾ÍÏ벻ͨÁË£¬Ôõ ......

´óÏÀ°ï°ïæ¡­Cµ÷ÓÃÎÊÌâ

ÎÒдÁËÒ»¸öÁ´±íµÄ½á¹¹´æ·ÅÔÚ.CÎļþµÄµ±Ç°Ä¿Â¼´æÎª.H
ÎÒÔÚµ÷ÓÃÖÐд#include"lnode.h"
´íÎóÊÇ
unable  to  open  inculde  file 'lnode.h'
Ôõô»ØÊ°¡Ôõô»á´ò²»¿ª¡­°ïСµÜ½â½âÄÑлл
ÐèÒªÉèÖù¤³ÌµÄincludes director¡£
setting->c/c++->preprocessor->inc ......
×ܼǼÊý:1754; ×ÜÒ³Êý:293; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [107] [108] [109] [110] 111 [112] [113] [114] [115] [116]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ