有大神可以帮我写一个简单的C语言程序吗T.T 跪求各位大神_百度知道
有大神可以帮我写一个简单的C语言程序吗T.T 跪求各位大神
jpg" />要求都再图片上.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="http,小弟跪谢<a href="/zhidao/pic/item/3ac79f3df8dcdf768b。真的很需要各位帮助,先输入句子然后 一个个选择就好.jpg" esrc="/zhidao/wh%3D450%2C600/sign=4eea2b693d12b31bc739c52db3281a4c//zhidao/wh%3D600%2C800/sign=2370089cbd014a90816b4ebbac79f3df8dcdf768b.hiphotos://f://f。大神们帮帮忙.hiphotos.hiphotos://f。我也没有什么财富值,全都放进去了.baidu
提问者采纳
printf(".get(Sentence.\}//#define MaxWords 20 int _tmain(=') ||(*p>!=',c;n",c;& if(bP1Character && bP2Character) {
c=*p1#include &))
nCharacterCount++; if((*p1 &=')/,bP2Character= } else p1++:\,Sentence);) ||(*p2&5' if((*p2 &(1) Enter the sentence (M,Sentence);;c;查找制定字符出现的第一个位置(从后至前) { printf(&;使用 int pos=0;
} else if(Choice == ' } p--;
while(p2&//
p2 =Sentence+strlen(Sentence)-1;;&0'Please input your sentence(M>,MaxWords),pleas } else if(Choice == '.\; } ;p1是母 { bP1Character=;
} else if(Choice == '
while( *n", _TCHAR* argv[]){char Sentence[MaxWords+1]; std,c),自己试着改一下;0',nCharacterCount).get来接收空格;n&a'='n& ' && *p2&);c!= '提示输入 printf(&C='/?\.\a',nNoSpaceLen=0,pos);printf(pHint);0')
if((*p &n".\iostream>. 20 words);4'
else if(Choice == '.&) { if(*p == c) { pos = p-Sentence+1;)
/n".\);Z'/>:\,并且长度限制MaxWords+1
/n",nSentenceLen);/(3) Reverse the whole sentence from last character to the first:cin& p1++;
printf(&A'!=0)
printf(& getchar();/.\The senteYour sez'.\是否统计空格
int nSentenceLen=0;
/n&)/ Choice =getchar().&),应该就是cin的使用*/ getchar(); p1 =Sentence,*p=Sentence+strlen(Sentence)-1;A'n":;='统计字母个数
int nCharacterCount=0;(6) Find the position of a specified character at1'*iosteam应该是c++的.\显示输入结果 &C } p++,c); while (p >.\/The sentePlease input the character to find(form first to last);&/ } else p2--.h是c的,*p2;/Please input the character to find(form last to first);0'Can not find the character %c in then& }getchar().\ } printf(&Z',pos);const char * pHint =&
//n&/ p2 =Sentence+strlen(Sentence)-1;Z'The sentence has %d=' *p2=c; else printf(".\&
p1++;;) ||(*p1&键盘输入句子保存到Sentence gets_s(Sn&The character of %c in the sentence
position is %d;n&p2是母 { bP2Character=/\!='n&p1) { c=*p1;&='char Cn&
printf(&(4) Find the number of in
while( * printf(&n&&='
p++,c; && *p<.\ && *p&7' if()
/;翻转所有字符 { char * p1:;n":%s\
p2--;= Sentence) { if(*p == c) { pos = p-Sentence+1;\The sentence has %d wo)/ p2--:%s\(7) Reverse all the words in the sentence!=',sizeof(Sentence))!=0) printf(& && *p1&
p++;(2) How many words in the sentence:
char * p =Sentence,nNoSpaceLen);Enter Cwhile(C
else if(Choice == '
char * p =S
*p1=*p2;)/!='::;))/='&/;n&/std,Sentence);3'&/:\(0) Quit\翻转所有字母
char * p1; elseprintf(",*p=Sentence,MaxWords+1):cin&The character of %c in the sentence
position is %d; } if(6',c:; }
printf(&n":cin>:cin&);查找制定字符出现的第一个位置(从前至后) { printf(&\z'='; && *p1<. 20 words)\ && *p2<:%s\The number of instances of character is %d;Can not find the character %c in the)
if(Choice == '
nSentenceLen++;=',0;Ia' int pos=0,)
nNoSpaceLen++,*p2;=' } else { printf(&A'n& *p1=*p2;清空句子 memset(Sz'
p1 =SWord Processor\p1)
bool bP1Character= while( *&(5) Find the position of a specified character at n&&;}return 0;
else if(Choice == 'n& while(p2&2'
运行,提示_TCHAR indentifer
这个不是unicode的,如果要使用中文你就把char改成TCHAR,stren改成wcslen等,注意项目的字符集
提问者评价
非常感谢!!!!虽然还是有些问题,但是还是很感谢
其他类似问题
c语言程序的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁求光荣使命注册码或注册机,哪个大神能给一个,谢谢了 邮箱:_百度知道
求光荣使命注册码或注册机,哪个大神能给一个,谢谢了 邮箱:
ghfgbhjjjjhlhlhiguyftyfty
提问者采纳
嘻嘻,我也很期待呀
提问者评价
其他类似问题
您可能关注的推广
光荣使命的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁后使用快捷导航没有帐号?
查看: 484|回复: 5
新人欢迎积分0 阅读权限40积分452精华0UID帖子金钱374 威望0
Lv.4, 积分 452, 距离下一级还需 548 积分
UID帖子威望0 多玩草0 草
00:54:41 上传
该装的都装了,不知道为什么PSP type B显示不了,装也装不了
试了好几个版本的都是这样。有大神帮我救下吗?是什么问题啊
新人欢迎积分1 阅读权限50积分1649精华0UID帖子金钱2159 威望0
Lv.5, 积分 1649, 距离下一级还需 851 积分
UID帖子威望0 多玩草0 草
右下角有显示U盘那个箭头吗?
新人欢迎积分0 阅读权限40积分452精华0UID帖子金钱374 威望0
Lv.4, 积分 452, 距离下一级还需 548 积分
UID帖子威望0 多玩草0 草
新人欢迎积分0 阅读权限40积分476精华0UID帖子金钱1320 威望0
Lv.4, 积分 476, 距离下一级还需 524 积分
UID帖子威望0 多玩草0 草
在电脑卸载干净重新安多次看看
新人欢迎积分1 阅读权限50积分1649精华0UID帖子金钱2159 威望0
Lv.5, 积分 1649, 距离下一级还需 851 积分
UID帖子威望0 多玩草0 草
我的电脑右键选择管理然后磁盘管理看看有木有你的盘
新人欢迎积分0 阅读权限40积分997精华0UID帖子金钱1741 威望0
Lv.4, 积分 997, 距离下一级还需 3 积分
UID帖子威望0 多玩草0 草
对于这问题USB联机不懂的我不想多说。。。你装对了就不会这样无论64还32也没问题。。。。再不懂就进骷髅大神群找他调教
需要金钱:1100
Powered by
手机盒子客户端点击或扫描下载}