I've look all over the forum for help but I don't understand those solutions. I'm a newbie. I need to check the first char in the customer number and test whether it is 0 or not.
That's quite right whitenite1. But at the moment it either prints out 0 or 1, which is basically OK. The main problem is getting the first digit which is .at(0), not the first element in an array that doesn't exist - i.e. square brackets
The std::string class has overloaded the [] to act the same as array access, look at the bottom of the link you provided you'll see the documentation for this operator.
The snippet you posted is a valid function. It will return true if the first letter of the string is the '0' character, otherwise it will return false.
The function can be greatly simplified as shown in previous posts but it is valid.
Even the functions use in main is syntactically correct. The program will print either 1 (true) or 0 (false).