Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么在MSDN上的示例中文件路径的开头有一个“S” ?我知道您可以使用“@”,但“S”有什么作用?
Bitmap(S"D:\\Documents and Settings\\Joe\\Pics\\myPic.bmp");
这是一个样本C++/CLI,不是C#。S""inC++/CLI表示这是托管字符串文字。
C++/CLI
C#
S""
检查http://msdn.microsoft.com/en-us/library/ms235263.aspx