我想在Visual Studio 2017中选择一段代码并对其进行注释。我知道我可以使用 CTRL + K、C,但结果是:
/*fstream in("c:\\users\\hp\\documents\\visual studio 2017\\projects\\inputfile.in");
if (!in)
{
cerr << "can't open input file\n";
return 1;
}
fstream out("outputfile.out", fstream::out);
if (!out)
{
cerr << "can't open output file\n";
return 1;
}*/
我真正想要的是
//fstream in("c:\\users\\hp\\documents\\visual studio 2017\\projects\\inputfile.in");
//if (!in)
//{
// cerr << "can't open input file\n";
// return 1;
//}
//fstream out("outputfile.out", fstream::out);
//if (!out)
//{
// cerr << "can't open output file\n";
// return 1;
//}
我该怎么做呢?
我在网上搜索,但没有找到这个问题的答案。
I found myself the answer, but I can explain it only using screenshots.
So if I want to use the /.../ style, I select the code like this:
And if I want to use the // style, I select the code like this:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)