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
4 Answers
+ 3
Was If capitalized? If does not work. if will
+ 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
+ 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.
0
You should write if in small letters verify it ones