//gnu, k&r, bsd, stroustrup, linux, python, java, whitesmith, ellemtel, and cc-mode


gnu

/**
 *This is a comment
 */
class Example
  : public Base1
  , public Base2
{
private:
  const static int REPEAT_COUNT = 10;

public:
  template<typename T>
  void
  foo()
  {
    // Another comment

    for (int i = 0; i < REPEAT_COUNT; i++)
      {
        if ((i % 2) == 0)
          {
            printf("Hello ");
          }
        else
          {
            printf("World!");
          }
      }
        
    switch(REPEAT_COUNT)
      {
      case 10:
        printf("10");
        break;
      default:
        break;
      }
  }
};




k&r

/**
 *This is a comment
 */
class Example
     : public Base1
     , public Base2
  {
  private:
       const static int REPEAT_COUNT = 10;

  public:
       template<typename T>
       void
       foo()
            {
                 // Another comment

                 for (int i = 0; i < REPEAT_COUNT; i++)
                 {
                      if ((i % 2) == 0)
                      {
                           printf("Hello ");
                      }
                      else
                      {
                           printf("World!");
                      }
                 }
        
                 switch(REPEAT_COUNT)
                 {
                 case 10:
                      printf("10");
                      break;
                 default:
                      break;
                 }
            }
};



stroustrup

/**
 *This is a comment
 */
class Example
    : public Base1
    , public Base2
{
private:
    const static int REPEAT_COUNT = 10;

public:
    template<typename T>
    void
    foo()
        {
            // Another comment

            for (int i = 0; i < REPEAT_COUNT; i++)
            {
                if ((i % 2) == 0)
                {
                    printf("Hello ");
                }
                else
                {
                    printf("World!");
                }
            }
        
            switch(REPEAT_COUNT)
            {
            case 10:
                printf("10");
                break;
            default:
                break;
            }
        }
};




linux

/**
 *This is a comment
 */
class Example
    : public Base1
    , public Base2
{
private:
    const static int REPEAT_COUNT = 10;

public:
    template<typename T>
    void
    foo()
        {
            // Another comment

            for (int i = 0; i < REPEAT_COUNT; i++)
            {
                if ((i % 2) == 0)
                {
                    printf("Hello ");
                }
                else
                {
                    printf("World!");
                }
            }
        
            switch(REPEAT_COUNT)
            {
            case 10:
                printf("10");
                break;
            default:
                break;
            }
        }
};



python

/**
 *This is a comment
 */
class Example
	: public Base1
	, public Base2
{
private:
	const static int REPEAT_COUNT = 10;

public:
	template<typename T>
	void
	foo()
		{
			// Another comment

			for (int i = 0; i < REPEAT_COUNT; i++)
			{
				if ((i % 2) == 0)
				{
					printf("Hello ");
				}
				else
				{
					printf("World!");
				}
			}
        
			switch(REPEAT_COUNT)
			{
			case 10:
				printf("10");
				break;
			default:
				break;
			}
		}
};



java

/**
 *This is a comment
 */
class Example
	: public Base1
	, public Base2
{
private:
	const static int REPEAT_COUNT = 10;

public:
	template<typename T>
	void
	foo()
		{
			// Another comment

			for (int i = 0; i < REPEAT_COUNT; i++)
			{
				if ((i % 2) == 0)
				{
					printf("Hello ");
				}
				else
				{
					printf("World!");
				}
			}
        
			switch(REPEAT_COUNT)
			{
			case 10:
				printf("10");
				break;
			default:
				break;
			}
		}
};



whitesmith


/**
 *This is a comment
 */
class Example
    : public Base1
    , public Base2
    {
private:
    const static int REPEAT_COUNT = 10;

public:
    template<typename T>
    void
    foo()
	{
        // Another comment

        for (int i = 0; i < REPEAT_COUNT; i++)
            {
	    if ((i % 2) == 0)
		{
		printf("Hello ");
		}
	    else
		{
		printf("World!");
		}
            }
        
        switch(REPEAT_COUNT)
            {
            case 10:
                printf("10");
                break;
            default:
                break;
            }
	}
    };


ellemtel

/**
 *This is a comment
 */
class Example
   : public Base1
   , public Base2
{
private:
   const static int REPEAT_COUNT = 10;

public:
   template<typename T>
   void
   foo()
   {
      // Another comment

      for (int i = 0; i < REPEAT_COUNT; i++)
      {
	 if ((i % 2) == 0)
	 {
	    printf("Hello ");
	 }
	 else
	 {
	    printf("World!");
	 }
      }
        
      switch(REPEAT_COUNT)
      {
	 case 10:
	    printf("10");
	    break;
	 default:
	    break;
      }
   }
};


cc-mode

/**
 *This is a comment
 */
class Example
    : public Base1
    , public Base2
   {
   private:
       const static int REPEAT_COUNT = 10;

   public:
       template<typename T>
       void
       foo()
	   {
	       // Another comment

	       for (int i = 0; i < REPEAT_COUNT; i++)
		   {
		       if ((i % 2) == 0)
			   {
			       printf("Hello ");
			   }
		       else
			   {
			       printf("World!");
			   }
		   }
        
	       switch(REPEAT_COUNT)
		   {
		   case 10:
		       printf("10");
		       break;
		   default:
		       break;
		   }
	   }
};