如何将'数组字符串'作为函数的返回类型?

abc*_*abc 2 c++ function return-type

String [] decode(String message)

以上就是一个例子.我需要获得2个字符串s1和s2作为解码函数的返回值.我该怎么办?

bay*_*yda 6

如果你需要返回几个字符串,请使用下一个:
- std :: pair
- boost :: tuple
- structure

如果您不知道函数将返回多少个字符串 - 请使用类似std :: vector的内容.