如何下载、安装并使用code::blocks(download, install, and use code::blocks)

代码:如果学习C++,块是一个很好的工具,因为它编译C、C++和FORTRAN中的数据,并且它在Windows、MaOS和Linux上工作。我们将向您展示如何设置它,然后我们将指导您创建一个基本的“Hello World”C程序!...

第1部分第1部分(共4部分):下载代码::块

  1. 1从官方网站下载最新版本的Code::Blocks。导航到下载页面。在Windows部分下,选择“mingw设置”变量;这是一个多功能安装程序,包括所有必要的工具。选择下载链接继续。
  2. Image titled Download, Install, and Use Code__Blocks Step 1
  3. 2选择下载路径。单击下载链接后,将出现一个窗口,提示您选择保存安装程序文件的位置。首先,选择一个保存位置,然后单击“保存”继续。
  4. Image titled Download, Install, and Use Code__Blocks Step 2

第2部分第2部分(共4部分):安装代码::块

  1. 1启动安装程序。下载完成后,启动安装程序。安装程序将位于下载时指定的位置。
  2. Image titled Download, Install, and Use Code__Blocks Step 3
  3. 2运行安装程序。启动安装程序后,安装向导将出现在屏幕上。要继续,请单击“下一步”按钮。
  4. Image titled Download, Install, and Use Code__Blocks Step 4
  5. 3.阅读软件协议。阅读最终用户许可协议。阅读后,如果您同意条款并希望安装软件,请单击“我同意”。
  6. Image titled Download, Install, and Use Code__Blocks Step 5
  7. 4.选择组件。确保从顶部的下拉菜单中选择“完整”安装;这包括所有必要的软件组件。完成后,单击“下一步”继续。
  8. Image titled Download, Install, and Use Code__Blocks Step 6
  9. 5选择安装路径。默认情况下,Code::Blocks将安装在C:\Program Files(x86)\CodeBlocks\下。如果要使用此选项,请单击“安装”,否则,请在开始安装之前使用“浏览”按钮选择自定义安装路径。
  10. Image titled Download, Install, and Use Code__Blocks Step 7
  11. 6等待安装完成。安装需要几分钟才能完成,并将在窗口中显示其进度。
  12. Image titled Download, Install, and Use Code__Blocks Step 8
  13. 7.完成安装。出现提示时,不要运行Code::Blocks。首先,完成安装向导。通过单击安装程序屏幕上的“下一步”按钮,然后单击完成页面上的“完成”来完成。
  14. Image titled Download, Install, and Use Code__Blocks Step 9

第3部分第3部分,共4部分:设置c文件

  1. 1启动代码::块。要启动该程序,请双击安装程序放在桌面上的Code::Blocks图标。如果没有桌面快捷方式,可以在“开始”下找到该程序-->所有程序-->代码::块-->代码块。exe
  2. Image titled Download, Install, and Use Code__Blocks Step 10
  3. 2完成编译器设置。如果出现提示,接受GNU GCC编译器作为默认值。为此,请单击GNU GCC编译器的条目,然后单击“设置为默认值”。要继续,请单击“确定”。
  4. Image titled Download, Install, and Use Code__Blocks Step 11
  5. 3设置文件关联。如果提示,选择与代码关联的选项::用C和C++文件类型的块,然后单击“确定”。默认情况下,这将允许您在Code::Blocks中打开这些类型的文件。
  6. Image titled Download, Install, and Use Code__Blocks Step 12
  7. 4.创建一个新项目。在主页上,选择文件夹图标旁边的链接。这将打开一个新窗口,您将在其中设置项目。
  8. Image titled Download, Install, and Use Code__Blocks Step 13
  9. 5选择你的项目类型。在“从模板新建”窗口中,选择窗口左侧的“文件”标题。然后,选择“C/C++源代码”选项。单击“开始”继续。
  10. Image titled Download, Install, and Use Code__Blocks Step 14
  11. 6使用空文件向导。使用向导创建和配置C文件。要继续,请单击“下一步”。
  12. Image titled Download, Install, and Use Code__Blocks Step 15
  13. 7选择你的文件类型。选择创建“C”文件的选项。选择后,单击“下一步”按钮继续。
  14. Image titled Download, Install, and Use Code__Blocks Step 16
  15. 8设置文件路径。点击“…”按钮打开浏览器窗口,允许您创建C文件。
  16. Image titled Download, Install, and Use Code__Blocks Step 17
  17. 9选择文件名。首先,浏览到希望保存C文件的位置(建议为每个项目创建一个单独的文件夹)。接下来,为C文件选择一个名称。最后,单击“保存”以使用指定的名称和位置保存文件。
  18. Image titled Download, Install, and Use Code__Blocks Step 18
  19. 10完成文件向导的使用。要确认C文件的创建,请单击“完成”。
  20. Image titled Download, Install, and Use Code__Blocks Step 19

第4部分第4/4部分:创建一个简单的c程序

  1. 1输入源代码。要创建“Hello World”程序,请将下面的代码复制到code::Blocks中#包括<斯特迪奥。h&gt#包括<stdlib。h>int main(){printf(“Hello World.\n”);返回0;}
  2. Image titled Download, Install, and Use Code__Blocks Step 20
  3. 2运行程序。单击“构建并运行”图标运行程序。此函数在一个方便的步骤中编译并运行程序。
  4. Image titled Download, Install, and Use Code__Blocks Step 21
  5. 3.观看节目。运行后,终端窗口将弹出消息“Hello World”进程应返回0。如果出现不同的值,则程序可能存在问题。执行时间将根据计算机的速度而变化。
  6. Image titled Download, Install, and Use Code__Blocks Step 22
  • 如果使用MacOS或Linux,请参阅Code::Blocks Wiki以获取安装说明。
  • 确保您的计算机满足软件的最低系统要求。
  • 如果程序无法运行,请使用Code::Blocks中的日志来识别错误。
  • 发表于 2022-03-23 17:59
  • 阅读 ( 55 )
  • 分类:IT

你可能感兴趣的文章

下面是如何在树莓pi上轻松安装VisualStudio代码

...往任何时候都简单,我们将在这个简短的指南中向您展示如何安装。 ...

  • 发布于 2021-03-10 20:22
  • 阅读 ( 388 )

如何在windows 10上暂停更新

... Note: When your pause period expires, Windows Update will automatically download and install any available updates before it will let you pause again. 如何将更新暂停到特定日期 您可以将更新暂停到特定日期。在Windows Update设置屏幕上,单击“高级选项” 向下...

  • 发布于 2021-03-31 23:27
  • 阅读 ( 237 )

微软解释“云下载”如何重新安装Windows10

...in a really bad state or is too corrupted. That is where this latest cloud download option in Reset this PC can help. 标准的无映像恢复功能除了需要一些额外的时间和不受损坏的Windows安装外,还有另一个问题:如果没有安装最新的Windows更新,则必须在完...

  • 发布于 2021-04-03 03:26
  • 阅读 ( 163 )

如何防止Windows10自动下载更新

...egistry hack,双击其中一个.reg文件,使Windows Update notify for Download and notify for install、auto Download and notify for install或auto Download and schedule the install。还有一个.reg文件将删除其他文件创建的注册表值,允许您返回默认设置。只有当我...

  • 发布于 2021-04-09 05:39
  • 阅读 ( 174 )

如何从googleplay下载apk文件(android应用程序)

...但它可以让你下载任何免费应用程序的APK。 Note: Using APK Downloader is against Google’s Terms of Service as it involves accessing Google Play using means ‘other than through the interface that is provided by Google’. 您可以通过访问codekiem下载扩展的副本。您...

  • 发布于 2021-04-12 00:24
  • 阅读 ( 113 )

如何将扩展从一个chrome安装复制到另一个chrome安装?

...rome among my systems. My friend was not able to add an extension (YouTube Downloader). But I added it to my browser sometime before. So I tried to copy the .crx file and install in the other computer. Chrome notified me that “Using Chrome Web Store only you can install”. So how can I install in...

  • 发布于 2021-04-12 02:11
  • 阅读 ( 195 )

30个伟大的photoshop技巧和技巧,帮助您的计算机图形技能

...icle shows you a very easy, one-button method using an action file you can download. 使用免费的Photoshop操作自动删除背景 如何用photoshop操作在几秒钟内编辑数百张复杂的照片 The previous tip provided you with a ready-made, downloadable Action file for removing backgrou...

  • 发布于 2021-04-12 17:13
  • 阅读 ( 312 )

Windows7ServicePack1发布了:但是您应该安装它吗?

...问题,我们都会给你你真正需要知道的答案。 Where Do You Download It? While you can download the service pack manually from the Microsoft Download site, you should probably just go through Windows Update and select the optional SP1 update from there, since it’ll only download exa...

  • 发布于 2021-04-13 01:30
  • 阅读 ( 136 )

在ubuntu edgy上安装truecrypt

...篇文章来帮助您完成这个过程。   安装TrueCypt 首先,从下载页面下载源代码,因为Ubuntu debian包是为586而不是686内核编译的,所以我们必须自己构建它。 把下载的文件复制到你想要的任何地方。下一步是安装一些构建过程所需...

  • 发布于 2021-04-14 15:18
  • 阅读 ( 129 )

如果你不是开发者,如何安装最新的苹果betas

...appear in Settings - System - Software Update. Additionally, you can still download the file to your computer for manual installation.如果您想手动通过Xcode安装更新,苹果公司在其网站上有很好的说明:Download the tvOS beta software configuration profile for the new Apple TV...

  • 发布于 2021-05-13 23:05
  • 阅读 ( 182 )
Ccc0510121
Ccc0510121

0 篇文章

相关推荐