Lại Phương Thanh
New member
How can I use C++ in Linux?
Answer
Writing your First C++ Program on Linux
Answer
Writing your First C++ Program on Linux
- From your terminal, open a new file for editing using the vim command: vim hello.cc.
- In the vim editor, type the following code: #include
<iostream>
using namespace std; int main() { cout << "Hello, this is my first C++ program on Linux" << endl; return 0; }
</iostream> - Save and exit the file.