消除下标的连字符/下划线 [英] Eliminate a hyphen/underscore for a subscript

查看:124
本文介绍了消除下标的连字符/下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我需要消除X_2的下划线,其中2是下标。代码是什么样的?我在这里有一个样本,但不知道哪个是什么以及如何改变它,因为我确实尝试改变但没有发生任何变化。请帮忙。在此先感谢。

Hi. I need to eliminate the underscore for X_2 where the 2 is a subscript. What is the code like? I have a sample here but can''t figure out which is what and how to change it, as I did try to change but no changes took place at all. Please help. Thanks in advance.

展开 | 选择 | Wrap | 行号

推荐答案

展开 | 选择 | Wrap | 行号


我仍然收到错误。我已经取代了X_2用B3,B4表示B3,B4。就像我在excel专栏中一样。它表示在B4预期的标识符。我需要为它编写一个方法吗?

这就是我所做的:
I am still getting an error. I have replaced "X_2" with "B3,B4" as i have in the excel column. It says identifer expected at the "B4". Do I need to have a method written for it?
Here''s what I have done:
展开 | 选择 | 换行 | 行号


嗯......是的...你试图为一个字符串分配两个不同的值。
Well... yeah... You are trying to assign two different values to one string.

string myValue =(" B3", " B4");
string myValue = ("B3","B4");



你不能同时指定B3和B3。和B4和B4。单个字符串。


此外,这些字符串都不包含下划线 - 那么您期望如何替换不存在的下划线?

You can''t assign both "B3" and "B4" to a single string.

Also, neither of these string contain an underscore - so how are you expecting to replace an underscore that doesn''t exist?

这篇关于消除下标的连字符/下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆