We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Conditional Statements
- Discussions
Conditional Statements
Conditional Statements
Sort by
recency
|
817 Discussions
|
Please Login in order to post a comment
Hey guys, here a more compact solution:
include
using namespace std;
string ltrim(const string &); string rtrim(const string &);
int main() { string n_temp; getline(cin, n_temp);
}
string ltrim(const string &str) { string s(str);
}
string rtrim(const string &str) { string s(str);
}
include
include
using namespace std; int main() {
}
Can i use this code in my website? Is it helpful?
Very Basic and Understandable code.
If you want a simple method (Very basic). you can use switch case. It will work just fine and also switch will come easier to write.
include
using namespace std;
int main() {
}