Guest User

Untitled

a guest
Feb 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include<locale.h>
  3. using namespace std;
  4. int main(void){
  5. setlocale(LC_ALL,"Russian");
  6. int a=0;
  7. char st[80];
  8. char* pst=st;
  9. cin.getline(st,80);
  10. while(*pst!=0){
  11. *pst++;
  12. a=a+1;
  13. }
  14. cout<<a<<endl;
  15. system("pause");
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment