| |

VerySource

 Forgot password?
 Register
Search
View: 821|Reply: 3

Find a solution similar to Polish expressions?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-8 12:00:02
| Show all posts |Read mode
My program needs to recognize character expressions such as: a> 11&&a <100&&b == 15 || c> 21&&d == 20, and the program finally returns a true or false value, such as the function bool bret = fun (String s); s is a> 1&&a <100&&b == 5 || c> 1&&d == 2 and other strings, there may be +-* / (), etc., this How to deal with it?

Thank you
Reply

Use magic Report

0

Threads

25

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-1-14 21:18:02
| Show all posts
Compilation principle
lex&&yacc
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-29 20:36:02
| Show all posts
Is there something like a> 11&&a <100&&b == 15 || c> 21&&d == 20 this kind of algorithm?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-1 09:36:01
| Show all posts
Positive solution on the first floor
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list