//已经在WIN-TC上验证。include <stdio.h> int main(){ char strcut(char ,int);char str[]="abcdefg";printf("%s",strcut(str,3));getch();} char strcut(char str[],int m){ int p=0;while(str[p++])//计算字符串STR的长度。{ } p-=1;if(m=0)//验证m的值是否合法。retur...
include <stdio.h> int main(){ char *strcut(char *,int);char str[]="abcdefg";printf("%s",strcut(str,3));getch();} char *strcut(char str[],int m){ int p=0;while(str[p++]) //计算字符串STR的长度。{ } p-=1;if(m=0) //验证m的值是否合法。return &str[...