Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<locale.h>
- using namespace std;
- int main(void){
- setlocale(LC_ALL,"Russian");
- int a=0;
- char st[80];
- char* pst=st;
- cin.getline(st,80);
- while(*pst!=0){
- *pst++;
- a=a+1;
- }
- cout<<a<<endl;
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment