下载visual studio 环境搭建

下载visual studio

https://visualstudio.microsoft.com/zh-hans/

C++最新状态

https://isocpp.org/std/status

博客

https://www.cnblogs.com/mjios/category/473924.html

W3C官方

https://www.w3.org

学习借鉴

首选官方资料(手册、官网、文档),英文 > 中文

第一个代码

文件-新建-空项目-浏览 01-helloworld
源文件-C++文件-main

#include <iostream>
using namespace std;

int main(){
    cont << "Hello World!" << endl;

    getchar();
    return 0;
}

调试-开始执行

字体设置

工具-选项 搜索字体 行号 大括号
工具-选项 搜索键盘 搜索注释 快捷按键 文本编辑器

常用快捷键

ctrl + J:智能提示 Tab:选择与使用智能提示

需要安装的组件

工具 获取工具和功能 只勾选使用C++的桌面开发

打开以前的项目有问题:项目-重定解决方案目标
修改默认编码UTF-8:扩展-管理扩展 联机 搜索forceutf8 Format on Save

原文地址:https://www.cnblogs.com/sec875/p/12240922.html