Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Feb. 18, 2021, 3:21 p.m.
FORMAT:
C++
SIZE:
271 Bytes
Raw
Download
Tweet
HITS:
329
Go to comments
Report
std
::
string
delimiter
=
">="
;
size_t
pos
=
0
;
std
::
string
token
;
while
((
pos
=
s
.
find
(
delimiter
))
!=
std
::
string
::
npos
)
{
token
=
s
.
substr
(
0
,
pos
);
std
::
cout
<<
token
<<
std
::
endl
;
s
.
erase
(
0
,
pos
+
delimiter
.
length
());
}
std
::
cout
<<
s
<<
std
::
endl
;
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus