Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How do you indent?

Name: Anonymous 2009-07-29 12:23

What is your preferred style of code indentation? I personally tend to use the GNU style indent.


static char *
concat (char *s1, char *s2)
{
    while (x == y)
      {
        something ();
        somethingelse ();
      }
    finalthing ();
}

Name: Anonymous 2009-07-29 15:07

>>21
>>23
Let me fix that for you.


void funct(int *yumyums,std::vector<int> &results){
    if (!yumyums)
        return;
    int result=0;
    for (int i=*yumyums;i>0;i--){
        result=i*i;
        result=i^result^0x55;
        if (result>0x50000000)
            results.push_back(result);
        else
            i++;
    }
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List