RedHat Linux 的安装步骤如下(更详细的安装步骤参考相对应的视频)

redhat安装和hellowprld实现_安装步骤


redhat安装和hellowprld实现_linux_02

redhat安装和hellowprld实现_linux_03

redhat安装和hellowprld实现_当前目录_04

redhat安装和hellowprld实现_安装步骤_05

redhat安装和hellowprld实现_redhat安装_06

redhat安装和hellowprld实现_安装步骤_07

redhat安装和hellowprld实现_linux_08

redhat安装和hellowprld实现_安装步骤_09

redhat安装和hellowprld实现_redhat安装_10

redhat安装和hellowprld实现_当前目录_11

redhat安装和hellowprld实现_redhat安装_12

编写一段C语言代码

       输入vi  进入编辑模式

       编写完代码后, 按下ESC,然后按下冒号【:】

通过  w  c.c  将代码保存为c.c文件

redhat安装和hellowprld实现_当前目录_13

编译和运行程序

(1)编译c.c生成a.out   :  gcc   c.c

 

(2) 运行程序a.out  :  ./a.out

 

       ./ 的意思是执行当前目录下的a.out

redhat安装和hellowprld实现_当前目录_14

编写一段C++代码

输入vi  进入编辑模式

编写完代码后, 按下ESC,然后按下冒号【:】

通过  w  将代码保存为文件

redhat安装和hellowprld实现_当前目录_15

编译和运行

 

(1)编译生成 cpp.out   :  g++     -o  cpp.out

 

(2) 运行程序cpp.out  :  ./cpp.out

 

       ./ 的意思是执行当前目录下的cpp.out

redhat安装和hellowprld实现_linux_16