سلام
من بردsim 900رو ازecaخریدم.یک سری برنامه های اماده داره که نمی فهمم؟؟؟؟مثل این برنامه
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++
// Operator name
//
//++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++
int Operator_Name(char *str)
{
char text1[100],text2[100];
char *p1,*p2;
printf("AT+COPS?%c",Enter);
getstr(text1);
getstr(text2);
getstr(text1);
p1 = text2;
p2 = strchr(p1,'\"'
;
p1 = p2 + 1;
p2 = strchr(p1,'\"'
;
strncpy(str,p1,p2 - p1);
str[p2 - p1] = 0;
if(!strcmp(text1,"OK"
)
return 1;
else
return 0;
}
من بردsim 900رو ازecaخریدم.یک سری برنامه های اماده داره که نمی فهمم؟؟؟؟مثل این برنامه
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++
// Operator name
//
//++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++
int Operator_Name(char *str)
{
char text1[100],text2[100];
char *p1,*p2;
printf("AT+COPS?%c",Enter);
getstr(text1);
getstr(text2);
getstr(text1);
p1 = text2;
p2 = strchr(p1,'\"'

p1 = p2 + 1;
p2 = strchr(p1,'\"'

strncpy(str,p1,p2 - p1);
str[p2 - p1] = 0;
if(!strcmp(text1,"OK"

return 1;
else
return 0;
}