我想在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;
//}
我该怎么做?
我搜索了互联网,但我没有找到这个问题的答案。