Share your repls and programming experiences

← Back to all posts
String check and Basic if-else
ambitiousmumu (0)

Lessons:
1. String should be declared as string variable , instead of using it as char c[10];
2. Nested if-else isn't really efficient, use it if you don't have any other option out.
3. Inputting string is easy, you can simply use std::cin>> variable