18. Remove Whitespace
Lesson 19 of 31 in Coddy's 30 Days of Logic Building in C++ course.
Challenge
EasyWrite a function to remove whitespace from a given string.
- Input: "Hello World"
- Output: "HelloWorld"
Try it yourself
#include <string>
using namespace std;
string removeWhitespace(string str) {
// Write code here
}All lessons in 30 Days of Logic Building in C++
1Introduction
Introduction