MY FIRST C++ PROGRAM

来源:互联网 发布:cf玫瑰精灵数据 编辑:程序博客网 时间:2024/05/01 02:07

1, create c++ program:

#include <iostream>int main(){        std::cout<<" this is my first program " << std::endl;        return 0;}


2, compile 

qianyy@ubu:~$ g++ first.cc -o first

3 execute 

qianyy@ubu:~$ ./first this is my first program qianyy@ubu:~$ 


原创粉丝点击