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);
}
¼ÆËãÊäÈ볤¶ÈµÄ³ÌÐò£¬Õâ¸ö³ÌÐ ......
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 ......
chrÊÇÒ»¸öC´®£¬ÎÒÏë°Ñ´®Êײ¿µÄ0È¥µô
while(*chr=='0'){++chr;}
Èç¹ûÕâ¸ö´®Ê×ûÓÐ0»¹ºÃ£¬ÓÐ0µÄ»°ÔËÐÐʱ»á³öÏÖ´íÎó
ÏÔʾÊÇdbgheap.cµÄ1044ÐгöÏÖ_CrtIsValidHeapPointer´íÎó
ÄãµÄchrÊÇÊý×éÃû°É£¬ÊÇÖ»¶ÁµÄ£¬²»ÄܽøÐÐ++²Ù×÷
ÕâÑù½â¾ö²»Ò»¶¨ºÃ£¬Äã¿ÉÒÔÁ±ÙÄÚ´æ¿Õ¼äÀ´±£´æ×Ö·û´®
C´®Ê× ......
Çë´ó¼Ò°ïСµÚ½â´ðÒ»ÏÂÈçÏÂÎÊÌâ
struct lnode{
elentype data;
struct lnode *next;
};
typedef struct lnode *Lnode;
Îĸö´æÔÚ.hÎļþÀï
void main(){
Lnode T;
char item;
initlist(&T ......
#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ÎļþµÄµ±Ç°Ä¿Â¼´æÎª.H
ÎÒÔÚµ÷ÓÃÖÐд#include"lnode.h"
´íÎóÊÇ
unable to open inculde file 'lnode.h'
Ôõô»ØÊ°¡Ôõô»á´ò²»¿ª¡°ïСµÜ½â½âÄÑлл
ÐèÒªÉèÖù¤³ÌµÄincludes director¡£
setting->c/c++->preprocessor->inc ......