15 lines
250 B
C++
15 lines
250 B
C++
#ifndef S0151_REVERSE_WORDS_IN_A_STRING_HPP
|
|
#define S0151_REVERSE_WORDS_IN_A_STRING_HPP
|
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
class S0151 {
|
|
public:
|
|
void reverseSubStr(string &s, int begin, int end);
|
|
string reverseWords(string s);
|
|
};
|
|
|
|
#endif
|