export gcc g++

# Step 1: Install the GNU Compiler Collection (GCC)
sudo apt-get update
sudo apt-get install build-essential

# Step 2: Check if GCC is installed
gcc --version
g++ --version

# Step 3: Write a simple C++ program (e.g., hello.cpp)
#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

# Step 4: Compile the C++ program using g++
g++ -o hello hello.cpp

# Step 5: Run the compiled program
./hello