reset password
Author Message
OhWhen
Posts: 14
Posted 22:45 Mar 02, 2020 |

I don't understand how we're supposed to remove the answer and replace it with the underscores. I've been trying to use the replace method but nothing is working. I even tried turning it into a char array but still no luck

dkwok
Posts: 24
Posted 23:18 Mar 02, 2020 |

There's something called split() in the string class. The method allows you to break your string into different parts depending what parameter you give it. You should probably store the split results into an array though. 

Last edited by dkwok at 23:25 Mar 02, 2020.
OhWhen
Posts: 14
Posted 18:57 Mar 03, 2020 |

I’m getting this weird error, don’t know how to fix it