Advertisement
Denistod

Untitled

Nov 17th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char x[105],*p,aux[105],r[105];
  5. int main ()
  6. {
  7. int n,m,b,s,i;
  8. cin.getline(x,25);
  9. p=strtok(x," ");
  10. strcpy(aux,p);
  11. p=strtok(0," ");
  12. strncpy(r,p,1);
  13. strcat(r,". ");
  14. strcat(r,aux);
  15. cout<<r;
  16. return 0;
  17. }
  18.  
  19. 95
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement