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.