2464 views|12 replies

1643

Posts

0

Resources
The OP
 

Is there any way in KEIL4 to find out whether == in IF() is written as =? [Copy link]

 

邀请:@maychang   @chunyang   @damiaa   @huo_hu   参与回复

Is there any way to find out whether == in IF() is written as = in KEIL4?

This post is from MCU

Latest reply

Let's learn C first, tools and other things are secondary  Details Published on 2021-11-24 22:37
 

1

Posts

0

Resources
2
 

This is not easy to report, just look for it slowly

This post is from MCU
 
 

2146

Posts

8

Resources
3
 

If there is a lot of code, write a regular expression to search the whole project and then correct it. If there is little code, check it one by one.

This post is from MCU
 
Personal signature坐而言不如起而行
 
 

6069

Posts

4

Resources
4
 

Put numbers first and variables second

if(1==val)

This post is from MCU
 
 
 

277

Posts

0

Resources
5
 

This is very troublesome. I can only look for it slowly without getting any errors.

This post is from MCU
 
 
 

7462

Posts

2

Resources
6
 

=? Won't it be a compilation error?

This post is from MCU

Comments

Could PC-LINT help with this problem?  Details Published on 2021-11-24 10:50
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

2w

Posts

0

Resources
7
 

"Is there any way to find out whether == is written as = in IF() in KEIL4?"

I feel very strange: Is there an IF statement in C language?

When you write a program, write an IF statement to see if it can be compiled.

This post is from MCU

Comments

Thanks, it's an if statement, not an IF statement  Details Published on 2021-11-23 18:10
 
 
 

1643

Posts

0

Resources
8
 
maychang posted on 2021-11-23 16:51 "Is there any way to find out if == is written as = in IF() in KEIL4?" I am very curious: Is there an IF statement in C language? ...

Thanks, it's an if statement, not an IF statement

This post is from MCU
 
 
 

1w

Posts

142

Resources
9
 

Use your editor's string search and take a closer look.

This post is from MCU

Comments

Have you ever used PC-LINT?  Details Published on 2021-11-24 10:49
 
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 

1643

Posts

0

Resources
10
 
This post was last edited by Shenzhen Xiaohua on 2021-11-24 10:50
chunyang posted on 2021-11-23 21:31 Use the editor's string search and then look carefully.

Could PC-LINT help with this problem?

This post is from MCU

Comments

MCU programming does not require that kind of software at all.  Details Published on 2021-11-24 16:38
 
 
 

1643

Posts

0

Resources
11
 
freebsder posted on 2021-11-23 16:35 =? Isn't there a compilation error?

Could PC-LINT help with this problem?

This post is from MCU

Comments

Let's learn C first, tools and other things are just a side issue  Details Published on 2021-11-24 22:37
 
 
 

1w

Posts

142

Resources
12
 
Shenzhen Xiaohua posted on 2021-11-24 10:49 chunyang posted on 2021-11-23 21:31 Use the editor's string search and then look carefully. I would like to ask if PC-LINT can help with this problem...

MCU programming does not require that kind of software at all.

This post is from MCU
 
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 

7462

Posts

2

Resources
13
 
Shenzhen Xiaohua published on 2021-11-24 10:50 Can PC-LINT help with this problem?

Let's learn C first, tools and other things are secondary

This post is from MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list