unit 5 opps
1️⃣ Strings in C++ 🔹 Definition (Easy Words) A string is a collection of characters used to store text like name, address, etc. Example: "Ujjwal" "ATM Machine" "Library Book" 🔹 String in C++ C++ provides string class in <string> library. #include <iostream> #include <string> using namespace std ; int main () { string name = "Ujjwal" ; cout << name ; } 🔹 Common String Operations string s1 = "Hello" ; string s2 = "World" ; cout << s1 + " " + s2 ; // Concatenation cout << s1 .length(); // Length 2️⃣ Exception Handling in C++ 🔹 Definition (Easy Words) Exception handling is a method to handle errors during program execution so the program does not crash. In simple words: 👉 If an error happens, we handle it safely. 🔹 Keywords Used try catch throw 🔹 Example #include <iostream> using namespac...