注:本文是学习中的知识点的总结,所以会从网上摘录一些资源。如有侵权,请在下面留言,核实后会删除。
1、
#pragma once
Specifies that the file will be included (opened) only once by the compiler when compiling a source code file.
This can reduce build times as the compiler will not open and read the file after the first #include of the module.
标明这个头文件只编译一次。可以节省编译次数。
2、关于代码的自动补全,msdn上说,用ctrl+空格,可是在我们的电脑里面这是调输入法的设置。网上查了一下,用ctrl+j,这样会弹出类的变量可以供选择。
3、关于快捷键,F7为生成解决方案,F5为开始调试(直接运行,如现错误停止,好像是这样,目前理解的还不清楚),ctrl+F5为运行。
F9,将当前行设置为程序断点,以供调试。F10为下一步(下一行代码)。Shift+F5停止调试。
还不清楚,"build solution "跟"build $工程名" 有什么区别,以后慢慢理解吧。
4、程序运行结束,所以变量值应该为0,否则含有隐含bug.
想想这是为什么呢?