What do you want to save?
Add Code snippet
New code examples in category C++
-
BioGeo 2021-09-03 18:48:02
c++ first letter of string
#include <iostream> #include <string> int main() { string str{}; // creating string getline(cin, str);// using getline for user input std::cout << str; // output string namePerson if (str[0] >= 'a' || str[0] <= 'z') ... Add solution -
Aimee Jones 2021-09-03 15:43:02
Solution::longestPalindrome(string A)
123456789101112131415161718192021222324252627282930313233343536373839404142string Solution::longestPalindrome(string A) { string str; int n = A.length(); int first = 1; int second = 0; for(int i = n-1; i >= 0; i--) { int low = i... Add solution
Best helpers
Bad Dog
+5
Legion123
+5
Shawn Wang
+5
LBushkin
+5
OgWestside
+5
Mlevin
+5
Darah
+5
V. G.
+5
PeerPaso
+5
Tae-gon Kim
+5
Jacques27
+5
E meyr
+5
Jude Angione
+5
Human
+5
Aeth
+5