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 = "I love apples, and apples love me."; cout << txt.find("apples") << "\n"; cout << txt.rfind("apples"); return 0; }
7
19