#include<iostream>
using namespace std;
int hhh(char *pt);
void main()
{
int i;
char str[100], *pt = str;
cout << "请输入数组元素" << endl;
gets_s(str);
cout << hhh(pt) << endl;
}
int hhh(char *pt)
{
int n = 0;
while (*(pt + n) != '\0')
n++;
return n;
}
using namespace std;
int hhh(char *pt);
void main()
{
int i;
char str[100], *pt = str;
cout << "请输入数组元素" << endl;
gets_s(str);
cout << hhh(pt) << endl;
}
int hhh(char *pt)
{
int n = 0;
while (*(pt + n) != '\0')
n++;
return n;
}