Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Camel case
// CPP program to convert given sentence /// to camel case. #include <bits/stdc++.h> using namespace std; // Function to remove spaces and convert // into camel case string convert(string s) { int n = s.length(); int res_ind = 0; for (int i = 0; i < n; i++) { // check for spaces in the sentence if (s[i] == ' ') { // conversion into upper case s[i + 1] = toupper(s[i + 1]); continue; } // If not space, copy character else s[res_ind++] = s[i]; } // return string to main return s.substr(0, res_ind); } // Driver program int main() { string str = "I get intern at geeksforgeeks"; cout << convert(str); return 0; }
run
|
edit
|
history
|
help
0
PATRA_Class_test
all possible palindrome partitions
std_minmax_unexpected_behaviour.cpp
tAquireSignalProcessor
avx2 optimized pcg32 random number generator
HTML Node
Podejrzana karteczka :0
PreDir2
member function pointer
on_off