Downside: Proprietary AIDS -
>This style is used by default in Microsoft Visual Studio 2005 and Apple's Xcode.
Name:
Anonymous2007-12-26 21:23
int main(int argc,char **argv) {
...
while(x==y) {
something(); somethingelse(); // I'm assuming these two are somewhat related
if(some_error) do_correct();
else continue_as_usual();
}
finalthing();
...
}
like >>4 with 1-space indents and slightly altered spacing
Name:
Anonymous2007-12-27 7:01
Bonus points for figuring out what it's for/from. while(inpos<data+len) {
unsigned short type; unsigned int rlen;
type = *(unsigned short *)inpos++;
rlen = ((type&63)==63)?*(unsigned int *)inpos++ : type&63;
type >>= 6;
switch(type) {
...
default:
*(unsigned short *)outpos++ = (type<<6) + (rlen<63)?rlen:63;
if(rlen>=63) *(unsigned int *)outpos++ = rlen;
while(rlen--) *outpos++ = *inpos++;
}
}
Name:
Anonymous2009-03-18 3:55
#include "stdlib.h"
void main(){
puts("I write code");
puts("like this";
for(char c = 'a'; c < 'z'; c++){
//I didn't have a tab button on my keyboard for awhile so
//it evolved into me using a single space...
//I don't write in C so I might've made an error or two.
}
}