Lesson 12 of 24

string Class और String के सवाल

10 min 30 XP

C++ strings के साथ length(), substr(pos, len), find(), replace(), जोड़ने के लिए += और तुलना के लिए == आते हैं। reverse(s.begin(), s.end()) string को उलट देता है।

Example: edit me and press Run

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.

Challenge

+30 XP

getline से एक लाइन पढ़ें। हर शब्द का पहला अक्षर capital और बाकी lowercase करें। Input: lEARN c++ AT skill park Output: Learn C++ At Skill Park

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.