Hi
My input string is as follows :-
ABC<-AFC:RFS<-DRP:KLE<-SJS:KLS
the required output string should be
ABC<-AFC<-DRP<-SJS
Means to strip down every string after :(colon)
How should i do that kindly help.
Hi
My input string is as follows :-
ABC<-AFC:RFS<-DRP:KLE<-SJS:KLS
the required output string should be
ABC<-AFC<-DRP<-SJS
Means to strip down every string after :(colon)
How should i do that kindly help.
Since this is c++ you can use std::string's find() method to locate the colon then substr() method to extract everything after it.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.