C++ Class in XCode

TheUaRT
Unregistered
 
Post: #1
File1.h
Code:
// File1.h

#ifndef _FILE1_H_
#define _FILE1_H_

class User
{
private:
    char m_Name[16];
    char m_Pass[16];
    
public:
        User( void ); // <- Extra Indent? why?
    ~User( void );
};

#endif  _FILE1_H_

Anyone know why XCode is inserting an extra indent before 'User( void );'

if I remove the line 'char m_Pass[16];' it nolonger inserts the extra indent before 'User( void );'

I'm using XCode v2.3
Moderator
Posts: 508
Joined: 2002.09
Post: #2
Does it matter?

"When you dream, there are no rules..."
Sage
Posts: 1,403
Joined: 2005.07
Post: #3
Turn off auto indent, its much easier to work with, I use command-[ and ] to indent/undent in Xcode, or just use emacs.

Sir, e^iπ + 1 = 0, hence God exists; reply!
LongJumper
Unregistered
 
Post: #4
Because you did not place the cursor in front of User( void ); and press the "delete" key. It is located on the top right portion of the keyboard.

Special note: If you have an extended keyboard, the top right portion may actually be the eject key. If that is the case, refer to your user manual for the location of the delete key.
Moderator
Posts: 508
Joined: 2002.09
Post: #5
Closed before it gets out of hand...

"When you dream, there are no rules..."
Thread Closed