如何在C#中打印特殊字符? [英] How to print special character in C#?
本文介绍了如何在C#中打印特殊字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想打印一个代表温度的字符串值。
如何在C#中打印''上标小圈''?
thx ...
I want to print a string value that represent temperature.
how to print the ''little superscript circle'' in C#?
thx...
推荐答案
Amuro写道:
Amuro wrote:
我想打印一个代表温度的字符串值。
如何用C#打印''上标小圈''?
I want to print a string value that represent temperature.
how to print the ''little superscript circle'' in C#?
示例:
Console.WriteLine(" \\ \\ x00B0");
HTH,
Michael
-
Michael Kremser
http://great.dynu.com/
Example:
Console.WriteLine("\x00B0");
HTH,
Michael
--
Michael Kremser
http://great.dynu.com/
使用System;
使用System.Collections;
公共类MyClass
{
public static void Main()
{
Console.WriteLine(" Hello,World !\ u00b0");
Console.ReadLine();
}
}
-
/ jop
" Amuro" <是*** @ hotmail.com>在留言中写道
新闻:e4 ************** @ tk2msftngp13.phx.gbl ...
using System;
using System.Collections;
public class MyClass
{
public static void Main()
{
Console.WriteLine("Hello, World! \u00b0");
Console.ReadLine();
}
}
--
/jop
"Amuro" <am***@hotmail.com> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
我想打印一个表示温度的字符串值。
如何在C#中打印''上标小圈''?
thx ...
I want to print a string value that represent temperature.
how to print the ''little superscript circle'' in C#?
thx...
ALT + 176在一些程序中工作但在大多数程序中都没有。你可以随时从这里复制/粘贴
- > °< - 用于°C或°F。还有unicode
字符,预设有度数符号。
-
使用M2,Opera''革命性的电子邮件客户端: http://www.opera.com/m2/
Well ALT+176 worked in some programs but not in most. You could always
copy/paste from this -> ° <- For use with °C or °F. There are also unicode
characters that are prebuilt with the degree symbol.
--
Using M2, Opera''s revolutionary e-mail client: http://www.opera.com/m2/
这篇关于如何在C#中打印特殊字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文