Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
#include
#include
using namespace std; int main() { string txt = "Apple"; cout << (txt.compare("Apple") == 0 ? "Equal" : "Not equal") << "\n"; cout << (txt.compare("Banana") < 0 ? "Apple comes first" : "Banana comes first"); return 0; }
Equal
Apple comes first