+ 2
Can someone provide me with a c++ code to get all subsequence of a string(code should work in tubo c++ ).
eg-- input = abc output= a b c ab ac bc abc
5 ответов
+ 2
there is no fixed string lenght so function can be recursive
+ 1
thank you but i was looking for a simpler code
+ 1
https://youtu.be/KCEPvdLqlYI
i found this on youtube but substr function does not work in turbo c ++
+ 1
substr is not in string header file of turbo c++
0
should be simple enough by using substr function.. i can do it if you really need help.
for this i would use only vector, substr and for loops