Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int lenght(char str[])
- {
- int z=0;
- while (str[z] != '\0'){
- z++;
- }
- return z;
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- char str[200];
- cin.getline(str,200);
- cout << lenght(str);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement