How to find the individual letters of a string c++

#include <iostream>
#include <string>

int main() {
    std::string inputString;

    // Step 1: Get input string from user
    std::cout << "Enter a string: ";
    std::getline(std::cin, inputString);

    // Step 2: Iterate through each character in the string
    for (char& c : inputString) {
        // Step 3: Display each individual letter
        std::cout << c << " ";
    }

    return 0;
}