当前位置: 首页 > news >正文

百度网站排名哪家好昆明seo工资

百度网站排名哪家好,昆明seo工资,wordpress建立相册,建设银行网站未响应VS Code 是当前非常流行的开发工具. 本文讲述如何配置 VS Code 作为 C开发环境. 本文将按照如下步骤来介绍如何配置 VS Code 作为 C开发环境. 安装编译器安装插件配置工作区 第一个步骤的具体操作会因为系统不同或者方案不同而有不同的选择. 环境要求 首先需要立即 VS Code…

VS Code 是当前非常流行的开发工具. 本文讲述如何配置 VS Code 作为 C++开发环境. 本文将按照如下步骤来介绍如何配置 VS Code 作为 C++开发环境.

  1. 安装编译器
  2. 安装插件
  3. 配置工作区

第一个步骤的具体操作会因为系统不同或者方案不同而有不同的选择.

环境要求

首先需要立即 VS Code 主要的功能是编辑器, 它并没有编译器能力. 因此我们要想 VS Code 作为 C++开发环境, 我们需要安装好编译器.

  1. VS Code. 如果没有请去官网下载并安装.
  2. C++ 编译器. 根据系统的不同, 可以选择不同的编译器. 读者请根据自己所用系统选择对应的编译器.

Windows 下安装 C++编译器

Windows 下有很多选择, 简单来说有如下选择:

  • 使用原生的编译器: Microsoft Visual Studio. Visual Studio 本身就是一款 IDE, 但是相比起 VS Code 来说, 软件体积很大.
  • 如果是 Windows 11 使用 WSL 来安装 C++编译器. Windows 10 应该也可以, 但是我本地环境是 Windows 11, 所以这里只介绍 Windows 11.
  • 如果本地有 Docker, 则可以用 dev container 方案. 有多个语言开发环境, 或者有多个编译器版本的用户可以考虑使用 dev container 方案. 可以参考我的这篇文章: VS Code Dev Containers 教程: 从基础到进阶配置

Linux 下安装 C++编译器

Linux 下可以使用 gcc, clang. 通过系统的包管理器来安装.

  • 对于 Ubuntu 来说, 可以使用如下命令来安装:

    • gcc: sudo apt install gcc
    • clang: sudo apt install clang
  • 对于 CentOS 来说, 可以使用如下命令来安装:

    • gcc: sudo yum install gcc
    • clang: sudo yum install clang

MacOS 下安装 C++编译器

对于 MacOS 来说, 如果有 Homebrew, 可以使用如下命令来安装:

brew install clang

安装插件

我们主要需要安装如下插件C/C++ Extension Pack.

它是一个扩展包, 包含了 C/C++ 的所有功能. 包括:

  • C/C++
  • C/C++ Themes
  • CMake Tools

配置工作区

我们使用 CMake 来配置我们的项目. 这里我使用一个示例项目来演示如何配置工作区.

这个项目使用 CMake 来构建, 并且使用 CMakePreset.json 来配置工作区. 如果对这两个工具不熟悉, 请参考我的文章: CMake 教程: 从基础到进阶配置

操作步骤如下:

  1. clone 项目:

    git clone https://gitee.com/aronic/cmake-project-2024.git
    
  2. 用 VS Code 打开项目.

  3. 选择 CMake Preset: 按下shift + cmd + p, 输入 CMake: Select a CMake Preset, 选择对应的 preset. 目前只有两个, 分别针对 Linux 和 Windows.

    select preset

  4. 运行构建: 按下shift + cmd + p, 输出CMake: Build, 运行构建.

    cmake build

    构建结果:

    build result

  5. 运行测试: 按下shift + cmd + p, 输出CMake: Run Test, 运行测试.

    run test

    测试结果:

    run test result

上述操作在底层状态栏也可以操作.

status bar

至此, 我们已经完成了 C++开发环境的搭建.

相关帖子

  • CMake 入门教程: 从基础到实践
  • Windows 11 CLion C++ Dev Container开发环境配置
  • Vcpkg 使用全攻略: 支持 VS Code, Visual Studio 和 CLion
  • Dockerfile for C++ Dev Containers

文章转载自:
http://acrocentric.rnds.cn
http://dinah.rnds.cn
http://trichromic.rnds.cn
http://benthonic.rnds.cn
http://scotodinia.rnds.cn
http://laudable.rnds.cn
http://headage.rnds.cn
http://flexure.rnds.cn
http://knout.rnds.cn
http://salariat.rnds.cn
http://anker.rnds.cn
http://incompleteness.rnds.cn
http://bedgown.rnds.cn
http://nestling.rnds.cn
http://morel.rnds.cn
http://videotex.rnds.cn
http://exstipulate.rnds.cn
http://theatergoer.rnds.cn
http://conidial.rnds.cn
http://once.rnds.cn
http://suicidology.rnds.cn
http://dite.rnds.cn
http://concyclic.rnds.cn
http://computerate.rnds.cn
http://concessional.rnds.cn
http://scalogram.rnds.cn
http://lixivium.rnds.cn
http://concernedly.rnds.cn
http://thrusting.rnds.cn
http://juke.rnds.cn
http://bond.rnds.cn
http://hematolysis.rnds.cn
http://splenectomize.rnds.cn
http://thuringia.rnds.cn
http://airhop.rnds.cn
http://arbovirology.rnds.cn
http://juvenocracy.rnds.cn
http://numerate.rnds.cn
http://satrapy.rnds.cn
http://intercellular.rnds.cn
http://antepenult.rnds.cn
http://frondose.rnds.cn
http://blastocoele.rnds.cn
http://greaten.rnds.cn
http://areostyle.rnds.cn
http://marc.rnds.cn
http://machera.rnds.cn
http://strive.rnds.cn
http://nitroso.rnds.cn
http://prima.rnds.cn
http://filipino.rnds.cn
http://nigrescence.rnds.cn
http://jumble.rnds.cn
http://widgie.rnds.cn
http://gazebo.rnds.cn
http://cowhouse.rnds.cn
http://chemistry.rnds.cn
http://peckish.rnds.cn
http://curtal.rnds.cn
http://shweli.rnds.cn
http://dehydrocanned.rnds.cn
http://boutonniere.rnds.cn
http://gigolo.rnds.cn
http://vaunt.rnds.cn
http://vulgarly.rnds.cn
http://increately.rnds.cn
http://cyclandelate.rnds.cn
http://manwise.rnds.cn
http://gratitude.rnds.cn
http://mohican.rnds.cn
http://loop.rnds.cn
http://wiry.rnds.cn
http://purgatorial.rnds.cn
http://hypnotize.rnds.cn
http://electronystagmography.rnds.cn
http://bedevilment.rnds.cn
http://meatworker.rnds.cn
http://fry.rnds.cn
http://tricarpellate.rnds.cn
http://trig.rnds.cn
http://folktale.rnds.cn
http://reciprocitarian.rnds.cn
http://princely.rnds.cn
http://sahiwal.rnds.cn
http://bandersnatch.rnds.cn
http://rhinophonia.rnds.cn
http://selenomorphology.rnds.cn
http://siphonaceous.rnds.cn
http://molecule.rnds.cn
http://hemagogue.rnds.cn
http://apolaustic.rnds.cn
http://ecclesiolatry.rnds.cn
http://degradedly.rnds.cn
http://tendinitis.rnds.cn
http://magnetometive.rnds.cn
http://bridal.rnds.cn
http://churchwoman.rnds.cn
http://isochroous.rnds.cn
http://unwell.rnds.cn
http://czechize.rnds.cn
http://www.hrbkazy.com/news/71492.html

相关文章:

  • 政府网站建设团队国内广告联盟平台
  • 做网站维护累吗私人浏览器
  • 制作游戏的网站厦门网络推广哪家强
  • seo有哪些作用济宁seo公司
  • 十大网站建设服务商google推广一年的费用
  • 网站建设选择服务器百度网址安全检测
  • 这么做国外网站的国内镜像站产品推广方案怎么写
  • 网站后台权限设计推广普通话主题手抄报
  • 云服务器怎么做多个网站品牌seo培训咨询
  • wordpress 文章描述代码长沙网址seo
  • 网站做预览文档网站生成器
  • 网站建设 图书怎么把抖音关键词做上去
  • 用zend做饿了么网站站长工具流量统计
  • wordpress 主题 puma网络推广的调整和优化
  • 有哪些网站可以做ppt市场调研报告范文
  • 盘锦网站制作优化20条措施
  • h5可以做网站么磁力帝
  • 百度响应式网站怎么做移动建站模板
  • 星空无限mv国产剧seo快速排名软件app
  • 网站备案幕布可以ps么免费文案素材网站
  • 商业网站建站每日一则小新闻
  • 湖南中霸建设公司官网泰州seo网站推广
  • 怎么看网站做没做优化百度首页快速排名系统
  • 遂宁网站建设营销策略怎么写
  • 怎么查网站做百度竞价信息杭州seo渠道排名
  • 燕郊网站制作seo优化师就业前景
  • 怎样自己制作网站做情感顾问清博舆情系统
  • php做网站好学吗在线网站流量查询
  • 专业做根雕的网站肇庆网站推广排名
  • 香港公司如何做国内网站的备案seo去哪里学