Hello, I've just started learning c++ from this website and when i tried to compile one of the programs shown in the tutorials it didn't work at all and i couldn't find a solution yet.
Sorry if I posted wrong, it's my first post here.
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string str {"Hello!"};
for (char c : str)
{
std::cout << "[" << c << "]";
}
std::cout << '\n';
}