Menu

#978 if statements don't work

Undefined
invalid
Compiler (42)
Undefined
2020-06-13
2020-06-12
No

When I use the if (num1 == 1) {} syntax, it does not carry out the comand when I click on the .exe.
The console window just flashes and dissapears. Running form Code::Blocks does not have this error.

1 Attachments

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2020-06-12

    When you run from C::B it keeps the console open when the program ends (if configured to do so). When you double click in the exe the console closes as soon as the program terminates. You must open a console (cmd) and run the program in it.

    This is not a bug with if(), and even if it were a bug it would be a compiler one. Elementary.

     
  • Sherlock Holmes

    Sherlock Holmes - 2020-06-13

    Thanks!

     
  • bluehazzard

    bluehazzard - 2020-06-13
    • status: open --> invalid
    • assigned_to: bluehazzard
    • Type: Bug_Report --> Undefined
     

Log in to post a comment.