1.下载visual studio installer
https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&passive=false
2.下载Visual Studio Community 2022 Preview
3.新建项目
4.安装FileEncoding
5.重启Visual Studio Community 2022 Preview
6.新建项
7.修改编码
7.写一个"Hello world!"
7.1 先写一个main方法,这里采用C99标准:int main(void){return 0;}
7.2 使用printf打印,不过在此之前要先添加头文件,这里是标准库
#include <stdio.h>int main(void){printf("Hello world!");return 0;
}