View Single Post
Old 07-18-2006, 10:52 PM   #1 (permalink)
naruto1327
Dante’s Inferno
 
naruto1327's Avatar
 
Join Date: May 2006
Location: OLD PROFILE. NEW: NOODLEPOWA
Posts: 608
Reputation: 10
Send a message via AIM to naruto1327 Send a message via MSN to naruto1327 Send a message via Yahoo to naruto1327
Default Your C++ Coding Preferences

I would like to know some of your C++ Coding Preferences.
With:

- Indentation
-- Four Spaces
- Bracket placement
Code:
void shout()
{
    cout << "HELLO!!!!!!!";
}
- Spaces between operators and declarations
-- Yes: n + m; Yes: int n = 1;
- Spaces between function name and starting parenthesis
-- None: shout();
- Spaces between loop name and starting parenthesis
-- One: if (n == 0)
- Where the * goes in declaring a pointer (next to the type name or the variable name)
-- Not sure for now, thats why I'm asking for your preferences but for now it's: int * n;
- Where the & goes in declaring a reference (next to the type name or the variable name)
-- Same as pointers: int & m = n;
- Whether you omit the <int> in the following specialization:
(
Code:
template <> void swap<int>(int &, int &)
)
-- Yes

Responses would be very helpful.

Last edited by naruto1327; 07-18-2006 at 10:55 PM.
naruto1327 is offline