数字转字串:
两个include被吃了
#include <stdlib.h>
#include <stdio.h>
追问:那你能用智能相机的Scriptor:对自定义变量进行脚本运算。来编写吗?? 看你听懂的样子。
这个也要看你的智能相机支持什么Script
#include
#include
int main(void)
{
int number = 12345;
char string[25];
itoa(number, string, 10);
printf("integer = %d string = %s\n", number, string);
return 0;
}
字串转数字:
#include
#include
int main(void)
{
int n;
char *str = "12345";
n = atoi(str);
printf("string = %s integer = %d\n", str, n);
return 0;
}
两个include被吃了
#include <stdlib.h>
#include <stdio.h>
追问:那你能用智能相机的Scriptor:对自定义变量进行脚本运算。来编写吗?? 看你听懂的样子。
这个也要看你的智能相机支持什么Script