Skip to content

Anonymous

My feedback

2 results found

  1. 5 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  General  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. 9 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    3 comments  ·  General  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Anonymous commented  · 

    The curly bracket is common in many languages. Used for showing where a function, If statement or loop starts and ends and making it easy to see what code is included in that function, if, or loop.

    Some people like them on the same line as their code, others (like me) like their brackets on separate lines. E.G:

    void foo(){
    cout<<"Hello World";
    return; }

    void foo()
    {
    cout<<"Hello World";
    return;
    }
    Which do you prefer to use and why?

    If you put your curly brackets on their own line maybe you indent them? To indent, or not to indent. Do you indent your curly brackets? if so by how many spaces and why?

Feedback and Knowledge Base