View Single Post
Re: What are the best practices?
Old
  (#7)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: What are the best practices? - 02-07-2008

Still I don't like the kind of new line syntax, but here whats looks better for me:

Code:
int MyFunc(int iParameter1, float flParameter2, char szParameter3[],
                    string strParameter4, bool bParameter5)
{
       // The stuff...
}
i.e. when the arguments can't fit good on the screen we put the new line with one tab space after the first bracket.

P.S. I can't get it to display well in the forum board but you get the idea.
  
Reply With Quote