문제

Following Code:

string a = "Adding substring" + "\xB2";
Console.Write(a);

Will give : "Adding substring2". 2 will be superscript as expected.

How can I do the same with number 3.

도움이 되었습니까?

해결책

Just replace 2 with 3 in "\xB2"

string a = "Adding substring" + "\xB3";
Console.Write(a);

And you will get:

Adding substring³

다른 팁

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top