redhat安装和hellowprld实现

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

redhat安装和hellowprld实现
redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

redhat安装和hellowprld实现

编写一段C语言代码

       输入vi  进入编辑模式

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

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

redhat安装和hellowprld实现

编译和运行程序

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

 

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

 

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

redhat安装和hellowprld实现

编写一段C++代码

输入vi  进入编辑模式

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

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

redhat安装和hellowprld实现

编译和运行

 

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

 

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

 

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

redhat安装和hellowprld实现