|
| » 首页 » 电脑_数码 » 编程 » 8、 存在一个英文文本,编写程序对所有没有以大写字母开... |
8、 存在一个英文文本,编写程序对所有没有以大写字母开... |
|
this is a c program. this is a pascal program. this is a Delphi program. 程序运行后的结果应变为: this is a c program. This is a pascal program. This is a Delphi program 十分感激 谢谢 |
![]() |
|
|
var ch,s:string;l:integer; begin readln(ch); while ch<>'' do begin l:=pos('.',ch); s:=s+copy(ch,1,l); delete(ch,1,l); if ord(ch[1])>=97 then ch[1]:=chr(ord(ch[1])-32); end; writeln(ch); end. var ch,s:string;l:integer; begin readln(ch); while ch<>'' do begin l:=pos('.',ch); s:=s+copy(ch,1,l); delete(ch,1,l); if ord(ch[1])>=97 then ch[1]:=chr(ord(ch[1])-32); end; writeln(ch); end. d |
| 《8、 存在一个英文文本,编写程序对所有没有以大写字母开...》答案收集时间:2008-06-14 14:38:31 |