Joined
Last Seen
0 Reputation Points
60% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #37.0K
3 Posted Topics
Hi buddy this may be helpful try this piece of code string str; cout<<"enter *143# \n"; cin>>str; sleep(5000); cout<<str; output: enter *143# *143#(after 5 secs) *143#
Hi joemeister.so, you know the string to be replaced no problem just follow this code you will get the output. found = modifiedExpr.find("sqrt"); if (found != std::string::npos) { modifiedExpr.replace(found, 4, "#"); }
The End.