首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

question about point,该如何解决

2012-03-11 
question about pointsorryican tinputchineseihaveafunctionvoidremoveFront(char*src){intifor(i0i

question about point
sorry   i   can 't   input   chinese

i   have   a   function  
void   removeFront(char*   src)
{
int   i;
for(i   =   0;i <strlen(src)-1;i++)
{
*(src+i)   =   *(src+i+1);
}
}

when   i   use   the   function   .the   system   always   tell   me   that   segmentation   fault   .

Anyone   help   me   ?   thx.

[解决办法]
cause your pointer was not allocated with appropriate memory
[解决办法]
How poor is my English! sigh!

热点排行