• 回答数

    6

  • 浏览数

    191

不忘初心258
首页 > 英语培训 > 删除英文句子

6个回答 默认排序
  • 默认排序
  • 按时间排序

我是飞儿

已采纳

选中区域单元格——按delete键

删除英文句子

249 评论(8)

hsx1314520

char *cp = " your input world "; char buf[512] = {0}; int i = 0; int world = 0; while(*cp != '\0') { //删除句子的前导空格和多余的中间空格 for(;(*cp == ' ' || *cp == '\t' ) && *cp != '\0'; cp++); for(;(*cp != ' ' && *cp != '\t' ) && *cp != '\0'; cp++){ buf[i++]=*cp; } if(*cp == '\0'){ buf[i]='\0'; break; }else{ buf[i++]=*cp; } } //删除句子的后导空格 if(i>1 && (buf[i-1] == ' ' || buf[i-1] == '\t')) { buf[i-1]='\0'; } printf("%s\n",buf);

130 评论(13)

titilovesanny

是不是这个?输入一个英语句子: l lll lllll lllll l lllll lll lllll lllll l llll#include void main(){char t[100];char w[100];printf("输入一个英语句子:");gets(t);int n=0,i,j=0;while(t[n]!=0)n++;for(i=0;i='a')||(t[i]<='Z'&&t[i]>='A')){w[j]=t[i];j++;}if(t[i]==' '&&t[i+1]!=' '){w[j]=t[i];j++;}}w[j]=0;if(w[0]==' '){n=0;while(w[n]!=0)n++;for(i=0;i

243 评论(10)

镜SHOW公主

Because of snow, passengers had to wait in the terminal until night.Winners always use most times to try to finishe other 20% the main things. Dr Douglas's pain cause him to understand the question profoundly, which who is us.(注意开头字母要大写,这也是改错)

155 评论(11)

吉果0412

00:00:8,400 --> 00:00:12,680五点了It's 1700 hours. 00:00:15,200 --> 00:00:18,080孩子们,出发!Boys, let's go! 删除之后最后的结果是什么呢?

233 评论(15)

施ccccceci

批量删除,你也没有上图,我猜一下吧,你可以用替换功能实现。比如在查找框输入,英:,替换为空就行。如果是英文,那就在查找框输入^$:,替换为空,^$代表所有字母。你可以试一下,如果不行,别保存,马上返回。这样就怕文件内也有字母加:的句子会删除。如果不是很多,可以一个一个替换,别点全部替换就行了。

184 评论(13)

相关问答