Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string.h>
- using namespace std;
- int main ()
- {
- char s[20];
- int i;
- cin.get(s,20);
- cin.get();
- strcpy(s,"bacalaureat");
- i=strchr(s,'a')-s;
- cout <<s<<" "<< i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement