在Linux(Ubuntu)中使用终端编译 && vscode安装

文章目录

📚在Linux(Ubuntu)中使用终端编译

🐇.cpp程序编译

  1. 创建及浏览文件 :新建test1文件夹,创建hello.cpp程序,并浏览文件夹。

  2. vim打开文件 :修改内容。:wq保存并退出。

    cpp 复制代码
    #include<stdio.h>
    int main()
    {
    	printf("Hello world !\n");
    	return 0;
    }
  3. 运行.cpp程序gcc -o hello hello.cpp,编译完成后可以看到在和hello.cpp相同目录下有一个hello的可执行文件。然后在当前路径下运行编译后的可执行文件:./hello

🐇.py程序编译

  1. 创建py文件
  2. 编译运行python3 hello1.py

🐇查看Python、C++编程环境

📚vscode安装

  • 在应用商店搜索后直接install

  • 安装对应的插件即可编译运行

相关推荐
AI的探索之旅几秒前
从 Ubuntu 14.04 到 24.04:TI AM335x 开发环境完整迁移与 Agent 接管方案
linux·数据库·嵌入式硬件·ubuntu·postgresql
阿pin13 分钟前
Android随笔-pipe是什么?
android·linux·pipe
小趴菜え18 分钟前
升级Ubuntu20.04版本至Ubuntu22.04
linux·运维
辰三24 分钟前
统信 UOS + GBase 8s 国产化环境部署实战:从虚拟机到数据库连接完整指南
linux·c#
Darkwanderor1 小时前
Linux进程优先级操作
linux·运维·c语言·c++
AOwhisky2 小时前
Linux(CentOS)系统管理入门笔记(第一期)——从 Multics 到主流发行版
linux·运维·笔记·centos·云计算
从零开始的代码生活_2 小时前
Linux epoll 多路转接详解
linux·运维·网络·后端·tcp/ip·计算机网络·php
渣渣盟2 小时前
Linux软件管理与编辑器命令速查手册
linux·运维·编辑器
无足鸟ICT2 小时前
【RHCA+】扩展正则表达式
linux·正则表达式
一池秋_2 小时前
ubuntu(linux)完美复刻windows11字体,解决linux字体费眼晴
linux·运维·ubuntu