如何在 C++ 中用引号表示两个正斜杠?

How do I represent two forward slashes within quotation marks in C++?

代码:

const LSString& strProjectPath = wstrOutputDir.c_str() + LSString( L"//") + filepath.stem().c_str() + LSString(L"-") + wstrUuid.c_str() + LSString(L"//") + filepath.stem().c_str() + LSString(L".lsproj");

我应该如何写下两个正斜杠,以便它后面的所有内容都不会被注释掉?奇怪的是,我只在我当前的文本编辑器 Atom 中遇到这个问题。 Visual Studio.

一切正常

这是您编辑器的语法高亮显示问题 - 实际上没有注释掉任何内容。

"How should I write down the two forward slashes so everything after it isn't commented out?"

一个解决方案是转义一个或两个斜杠。

LSString(L"\//")