多项目solution设置启动项目
如何设置project模板
场景:每道leetcode代码建一个工程,这些工程结构很相似,可以用模板提高效率吗?
VS编辑区代码左侧颜色竖线条含义
http://stackoverflow.com/questions/973598/what-do-the-visual-studio-margin-colors-mean
The color of the left margin allows you to keep track of the changes you have made in a file. Changes you have made since the file was opened but not saved are denoted by a yellow bar on the left margin (known asthe selection margin). After you have saved the changes (but before closing the file), the bar turns green. If you undo a change after you have saved the file, the bar turns orange. To turn this feature off and on, change the
Track changes
option in the
Text Editor
settings (
Tools/Options/Text Editor
).
Redirecting files to standard input in Visual C++
把从键盘输入重定向到文件 Project -> Properties -> Debugging -> Command Arguments
Add the following to your Command Arguments
< input.txt
同理可以输出重定向 >output.txt
< input.txt
同理可以输出重定向 >output.txt
Windows命令行输入重定向
使用Windows命令行时,可以用输入重定向符
MyProgram.exe 0<input.txt
使用命令行时,可以用输入重定向符
MyProgram.exe < input.txt
VS中,