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

推荐订阅源

博客园 - 【当耐特】
Help Net Security
Help Net Security
P
Proofpoint News Feed
J
Java Code Geeks
爱范儿
爱范儿
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Full Disclosure
Google DeepMind News
Google DeepMind News
H
Help Net Security
G
Google Developers Blog
Jina AI
Jina AI
Vercel News
Vercel News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
Lohrmann on Cybersecurity
S
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
GbyAI
GbyAI
B
Blog
O
OpenAI News
博客园_首页
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Simon Willison's Weblog
Simon Willison's Weblog
Y
Y Combinator Blog
C
Cisco Blogs
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
AI
AI
W
WeLiveSecurity
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale

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文件
调试