标题:关于VB的一点问题,谁来看下
只看楼主
zxq5159
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-12-7
 问题点数:0 回复次数:0 
关于VB的一点问题,谁来看下
题目:输入一段文章,将每个单词开头字母从小写改为大写
dim para,d,c,e,g as string,i,f,tot as integer
tot=len(text1.text)
d=mid(text1,3,1)
d=ucase(d)
for i=4 to tot
c=mid (text1,i,1)
if c=" " or c="." or c="?" or c=";" or c=":" or c=" " " or c=" ' " or c="?" or c="!" then
e=mid(text1,i+1,1)
f=Asc(e)-32
g=chr(f)
end if
next i
大家看下,是否开头字母从小改大了~我的问题是如何把输入进去的文章打印出来~,希望大家帮忙啊,谢谢了!
搜索更多相关主题的帖子: 文章 单词 如何 字母 
2006-12-07 22:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-107994-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.285706 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved