在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

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

相关推荐
kukubuzai1 小时前
Docker Note
linux·运维·docker
Ltd Pikashu1 小时前
insmod 加载内核模块 —— sys_init_module 源码剖析
linux·kernel·insmod
hj2862511 小时前
Linux网络基础一
linux·运维
小义_2 小时前
【Linux 1】
linux·运维·云原生·红帽
面向对象World2 小时前
Z8350 Broadcom SDIO网卡调试Ubuntu 22.04 Server版
linux·运维·ubuntu
Irissgwe2 小时前
12、多路转接 select
linux·io多路转接·select
无足鸟ICT2 小时前
【RHCA+】编辑多个文件
linux
fengyehongWorld3 小时前
Linux fd命令
linux
AIMath~3 小时前
hermes agent安装在Linux centos中
linux·运维·服务器
赵民勇3 小时前
如何查看一个二进制程序是否设置了rpath或runpath?
linux·c++