VS2017使用点滴

多项目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





Windows命令行输入重定向



使用Windows命令行时,可以用输入重定向符
MyProgram.exe 0<input.txt
0代表键盘输入





使用命令行时,可以用输入重定向符
MyProgram.exe < input.txt
VS中, 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值