社区
C++ Builder
帖子详情
怎么判断String strtmp的strtmp是否为空
fjliningcd
2004-04-15 07:30:59
怎么判断String strtmp的strtmp是否为空
也就是怎么判断strtmp==""
有什么好方法,并说理由。
...全文
108
3
打赏
收藏
怎么判断String strtmp的strtmp是否为空
怎么判断String strtmp的strtmp是否为空 也就是怎么判断strtmp=="" 有什么好方法,并说理由。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
JetKingLau
2004-04-15
打赏
举报
回复
strtmp == ""
strtmp.Length() == 0
strtmp.IsEmpty() == true
fathappy
2004-04-15
打赏
举报
回复
char *buffer = new char [strtmp.Length()+1];
strcpy(buffer,strtmp);
while(*buffer!='\0')
{
;
}
delete [] buffer;
然后单步看一下。
GeoPhoenix
2004-04-15
打赏
举报
回复
strtmp.Length() == 0
或
strtmp.IsEmpty()
或
试一下
标准C++中
st
ring
用法详解
ANSI标准C++中关于
st
ring
的详细用法,有相应的短代码。
asp.net视频播放器
public
st
ring
Play(
st
ring
url,int width,int height) {
st
ring
st
rTmp
= url.ToLower(); if(
st
rTmp
.EndsWith(".wmv")||
st
rTmp
.EndsWith(".wav")||
st
rTmp
.EndsWith(".mp3")||
st
rTmp
.EndsWith(".wma")||
st
rTmp
.EndsWith(".avi")||
st
rTmp
.EndsWith(".asf")||
st
rTmp
.EndsWith(".mpg")) { return wmv(url,width, height); } else if(
st
rTmp
.EndsWith(".mp3")) { return mp3(url,width,height); } else if (
st
rTmp
.EndsWith(".swf") ||
st
rTmp
.EndsWith(".fla")||
st
rTmp
.EndsWith(".pdf")||
st
rTmp
.EndsWith(".flv")) { return swf(url,width, height); } else if(
st
rTmp
.EndsWith(".jpg")||
st
rTmp
.EndsWith(".gif")) { return img(url,width, height); } else if(
st
rTmp
.EndsWith(".rm")) { return rm(url,width, height); } else { return "数据错误"; } }
C++
st
ring
用法详解 - BYVoid1
声明一个足够大得二维字符数组或者一个字符指针数组 读入一行到字符空间 然后分析一行的结构,找到空格,存入字符数组中。关闭文件 写一个排序函数,或者使用写一个比较
C# 邮件地址是否合法的验证
代码如下: ///
/// 检测输入的邮件地址
st
rEmail是否合法,非法则返回true。 ///
public bool CheckEmail(
st
ring
st
rEmail) { int i, j;
st
ring
st
rTmp
,
st
rResult;
st
ring
st
rWords = “abcdefghijklmnopqr
st
uvwxyz_-.0123456789”; //定义合法字符范围 bool blResult = false;
st
rTmp
=
st
rEmail.Trim(); //检测输入字符串
是否为空
,不为空时才执行代码。 if (
st
ring
用法详解
这里面有关于
st
ring
和详细的用法希望对大家有用
C++ Builder
13,874
社区成员
102,696
社区内容
发帖
与我相关
我的任务
C++ Builder
C++ Builder相关内容讨论区
复制链接
扫一扫
分享
社区描述
C++ Builder相关内容讨论区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章