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.