本文介绍了if(word_a!= word_b)然后......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 if(word_a!= word_b)then .... this(即比较 字符串)似乎不允许在C#中使用 - 或者是否有 a方式? 请回复, 谢谢, Adrian。 if(word_a != word_b) then .... this (i.e., comparingstrings) doesn''t seem to be allowed in C# - or is therea way? Please respond,thank you,Adrian.推荐答案 private void Form1_Load(object sender,System.EventArgs e) { if(" monkey"< ;驴) panel1.Text =猴子小于驴子; 其他 panel1.Text ="猴子不小于驴子;; } private void Form1_Load(object sender, System.EventArgs e) { if("monkey" < "donkey") panel1.Text = "Monkey is smaller than donkey"; else panel1.Text = "Monkey is not smaller than donkey"; } 这篇关于if(word_a!= word_b)然后......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-03 08:32