I need some help in C++ I know the code in Java but not in C++

I need to replace OR erase a character. I need to remove or replace a character in a string variable. Turn it into nothing (not replacing it with a "space") I'll provide an example in Java just incase I didn't explain myself correctly

EX:
public class example{
public static void main(String args[]){
String replaceBlank = "Hello?"
String replaceBlank1 = replaceBlank.replace("?", "");
System.out.println(replaceBlank1);
}
}

result:
Hello