+ 2
The program ignores the "If" statement
#include <iostream> using namespace std; int main() { int a; cout << "If Mihnea is the best select 0, if not press anything else"; cin >> a; if (a = 0) { cout << "You know what you know, and you know it right!"; } if (a >= 1) { cout << "In this moment, you are joking, or you are really dumb."; } return 0; } Some help? Cause i can run the program but the programs after the "If" doesn't trigger.
26 Réponses
+ 22
// Replace with :
if(a == 0)
+ 18
@C0MPL3X
Well, it happens! 😉
+ 12
lol
+ 5
wow rarely to see
Brother and Sister have a unity with each other xD
+ 3
@Dayve O crap I totally forgot about == and ='s!
+ 3
It's okay everybody makes a mistake too :D (Pro Tip: Even a pro makes more than one error :P)
+ 3
:D
+ 3
Just reviewed your codes! Nice! :D It was all awesome codes
+ 2
try replacing this:
if (a = 0) {
//code
} else if (a >= 1) {
//code
}
+ 2
Hmm let me see.
+ 2
Thank you
+ 2
It worked!
+ 2
Dayve: "You're welcome ;)"
It totally wasn't me
Good luck on your coding :)
+ 2
@Dayve Totally xD
+ 2
@Green Magic Production We already red/rad(read)/rod(What the heck is the past tense) it, but it was nice of you, you made her a code :) Nothing is odd here, I actually make wierd codes (Especially some that I thought it works, but doesnt)
+ 2
lmao
+ 2
@Corrupted_Data Holy cow! I just saw this man, was busy, I'll rate it :D
+ 1
It still doesn't work
+ 1
It doesn't trigger
+ 1
Let me try