News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Issue in 1TBS code example

Started by mimi89999, April 02, 2020, 12:58:37 PM

Previous topic - Next topic

mimi89999

The example code is:
```
int Foo(bool isBar)
{
    if (isFoo) {
        bar();
        return 1;
    } else {
        return 0;
    }
}
```

It's of course wrong. It should be `if (isBar) {`

OS: Debian GNU/Linux bullseye/sid 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13)
C::B version: 20.03-r11983

mimi89999


MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]