Oct 4, 2015 at 5:47am
Hello,
I got stuck in trim the url to header host format in c++.
Here i have string or char * type url as below
<code>
http://www.cplusplus.com/user/
</code>
I want to reduce to
cplusplus.com
as my final string. i did it as much as i can but i thought it was not a proper way to trim.
Any help would be appreciated.
Last edited on Oct 4, 2015 at 5:48am
Oct 4, 2015 at 6:37am
Got it ..using string find with substr ..so easily