Dominic Sears's Profile

About

 
Points: 2
Religion: Christian
Birthplace: Pomona

Education

 
Chaffey High School: 2010 - 2014

Contact

 

Dominic Sears  >>  Bucky Roberts
January 4, 2016 · Public

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

Dominic Sears
November 4, 2015 · Public