操作员提出错误

编程入门 行业动态 更新时间:2024-10-23 16:18:25
本文介绍了操作员提出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有两个字符串ds,ds1就像

i have two strings ds,ds1 like as

string ds,ds1;

保持关系为

maintain relation as

if(ds1>=ds) { }

但是提高错误就像 operters无法申请字符串 please帮助我。 谢谢你

but raise the error like as operters can not applied for string please help me. thank u

推荐答案

msdn.microsoft/en-us/library/84787k22(v = vs.110)的.aspx [ ^ ]

您无法比较该运算符的两个字符串。如果你想比较长度或比较相等,我的解决方案是找到方法支持比较C中的两个字符串 在这里读取msdn eg you cannot compare for two string by that operator. If you want to compare the length or compare equal, my solution is find the method support compare two string in C# read msdn here eg string MyString = "Hello World!"; Console.WriteLine(String.Compare(MyString, "Hello World?"));

更多推荐

操作员提出错误

本文发布于:2023-11-23 20:58:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622847.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:操作员   错误

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!