Skip to content

An issue from define the fuzzy rule in example.  #1

Description

@lttai86tt

I used VS code to compile the program. However, I have an error. Have you encountered this problem before?
@
Screenshot 2025-01-05 163537

"expression must have a constant value
#define PROPOSITION(_antecedent,_consequent) {.antecedent = (FuzzyAntecedent_t[])_antecedent, .num_antecedents = sizeof((FuzzyAntecedent_t[])_antecedent) / sizeof(FuzzyAntecedent_t), .consequent = _consequent}
Define a macro to create a fuzzy rule
"

I think your example might not be correct. If that's not the case, did I make a mistake?
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions