#include <stdio.h>
#include <string.h>
#include <stdbool.h>
bool is_decimal_string(char* str) {
int len = strlen(str);
int dot_count = 0;
bool has_digit = false;
C语言写一个函数,判断一个字符串是不是一个带有小数的数字
最新推荐文章于 2023-03-18 14:56:00 发布
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
bool is_decimal_string(char* str) {
int len = strlen(str);
int dot_count = 0;
bool has_digit = false;