惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Darknet – Hacking Tools, Hacker News & Cyber Security
V
Vulnerabilities – Threatpost
Cloudbric
Cloudbric
G
GRAHAM CLULEY
S
Securelist
Schneier on Security
Schneier on Security
Help Net Security
Help Net Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Project Zero
Project Zero
Spread Privacy
Spread Privacy
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
T
Tailwind CSS Blog
博客园_首页
有赞技术团队
有赞技术团队
Simon Willison's Weblog
Simon Willison's Weblog
Stack Overflow Blog
Stack Overflow Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Latest news
Latest news
T
Tor Project blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Attack and Defense Labs
Attack and Defense Labs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
O
OpenAI News
J
Java Code Geeks
T
Tenable Blog
K
Kaspersky official blog
AWS News Blog
AWS News Blog
S
Security @ Cisco Blogs
The GitHub Blog
The GitHub Blog
T
Threatpost
月光博客
月光博客
H
Heimdal Security Blog
Security Latest
Security Latest
The Hacker News
The Hacker News
Y
Y Combinator Blog
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
C
Cisco Blogs
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
C
CERT Recently Published Vulnerability Notes
D
Docker
Google Online Security Blog
Google Online Security Blog
D
DataBreaches.Net
V
Visual Studio Blog
H
Help Net Security

Lan小站-嗯,不错! - C

C++ string转CString - Lan小站-嗯,不错! c++的WS2tcpip和thread的bind冲突怎么解决 - Lan小站-嗯,不错!
Visual Studio Code配置C环境,运行C程序 - Lan小站-嗯,不错!
Lan · 2022-02-01 · via Lan小站-嗯,不错! - C

祝大家新年快乐

大家新年好,大年初一就开始卷起来了。

安装环境

1.VS Code安装插件

我安装了这四个插件(其实我一开始只装了第二个,好像后面几个是自己带的)
VS Code插件

2.安装C/C++编译器

在windows上借助MinGW工具安装,下载地址:[https://sourceforge.net/projects/mingw/]
这里帮大家整理到我的OD了,可以直接点击下载.

下载之后,打开安装,需要记住装到哪个目录了.
比如我就安装在D:\Program Files (x86)\MinGW

安装完成之后打开新安装的这个软件.

找到mingw32-gcc.bin,mingw32-gcc-g++.bin,mingw32-gdb.bin然后右键Mark for installation
安装
最后在左上角的installation点击apply changes
应用安装
最后安装完成
b编译器安装完成

3.配置到系统变量

找到安装目录下的bin,然后复制路径
bin
打开环境变量->系统变量->path
进行添加
环境变量

4.重启VS code

新建一个.c文件

#include <stdio.h>

int main()
{
    int n;
    printf("This is a test file!\r\nInput a number: ");
    scanf("%d",&n);
    printf("The number is %d",n);
    return 0;
}

打开一个新的终端
然后输入gcc -g test.c -o test.exe编译成exe文件.
编译exe
然后再打开exe文件
调试