my string is “37829300”.
How can I space out every 2 characters in the string so the result can be “37 82 93 00”.
I am trying to achieve this in vc++.
Thanks.
I understand I may have to use #include iostream but I am lost on how to do it properly.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Couldn’t find a fancy one-liner regular-expression, so let’s do it the manual way.