0

I'm getting an error in my c++ code " if was not declared in this scope".

How this error is even possible, iostream is used, using namespace std; is there..... Using if statement as this. If ( any condition ) { //printing statement } ... Now tell me please what is the problem... I so frustrated... I did this under int main(). . Please help

1st Jan 2020, 3:57 PM
Vishal Sharma
Vishal Sharma - avatar
4 ответов
+ 3
Was If capitalized? If does not work. if will
1st Jan 2020, 3:58 PM
Jax
Jax - avatar
+ 2
Thanks..... Ya my error was because of capitalization.... I didn't realised it due to first time writing code due to smartphone's keyboard 😅😁.... Thank you all
1st Jan 2020, 4:08 PM
Vishal Sharma
Vishal Sharma - avatar
+ 2
If possible, disable auto capitalize feature from the keyboard app settings. That feature can be useful for general writing and yet be annoying for writing code.
1st Jan 2020, 4:15 PM
Ipang
0
You should write if in small letters verify it ones
1st Jan 2020, 4:03 PM
Kamutala Mani sai
Kamutala Mani sai - avatar