请解释为什么在文件路径的开头有一个S

Please explain why there is an S at the beginning of a filepath?

本文关键字:开头 有一个 路径 文件 解释 为什么      更新时间:2023-10-16

为什么在MSDN上的示例中文件路径的开头有一个'S' ?我知道你可以用"@",但是"S"有什么用呢?

Bitmap(S"D:\Documents and Settings\Joe\Pics\myPic.bmp");

这是C++/CLI的样本,不是C#的样本。C++/CLI中的S""表示这是受管理的字符串文字。

检查http://msdn.microsoft.com/en-us/library/ms235263.aspx

相关文章: