problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
acwing::acwing16::Solution类 参考

#include <acwing.h>

静态 Public 成员函数

static string replaceSpaces (string &str)
 

详细描述

在文件 acwing.h1535 行定义.

成员函数说明

◆ replaceSpaces()

string acwing::acwing16::Solution::replaceSpaces ( string &  str)
static

在文件 acwing.cpp4883 行定义.

4883 {
4884 ostringstream oss;
4885 for(const char ch: str) {
4886 if(ch != ' ') {
4887 oss << ch;
4888 } else {
4889 oss << "%20";
4890 }
4891 }
4892 return oss.str();
4893 }

被这些函数引用 acwing::acwing16::TEST().


该类的文档由以下文件生成: