Thread: Diamond asterisk

  1. #31
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Well if mathmeticians are as insane as philosophers, then math is mostly truth but partly insane as it is the product of insane people. ...Math wasn't that bad until India invented algebra and made mathematics completely abstract. Making the real unreal is DEFINITELY crazy.

    Since a diamond is a rhombus and a rhombus is a shape, and shapes are geometry which is also math, we can talk about insanity and technically be on topic.

    That was awesome to type.

  2. #32
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Quote Originally Posted by Prelude
    >... but that sounds too much like objectifying programmers, which can only be bad ...
    However this is the C++ forum, therefore objects and things that are object-oriented are good.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  3. #33
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Quote Originally Posted by Brian
    I believe this fulfills all the requirements:
    Taking that route, I'd shorten it a bit.
    Code:
    #include <iostream>
    
    int main(void)
    {
       std::cout << "      *\n    * * *\n  * * * * *\n* * * * * * *\n"
                    "  * * * * *\n    * * *\n      *\n";
       return 0;
    }
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  4. #34
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    it's two triangles, just do the opposite for the top that you did for the bottom.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Blackjack Program
    By saber1357 in forum C Programming
    Replies: 1
    Last Post: 03-28-2009, 03:19 PM
  2. Bitwise Unwanted Output
    By pobri19 in forum C++ Programming
    Replies: 4
    Last Post: 09-15-2008, 04:07 AM
  3. command line asterisk converted to list
    By linucksrox in forum C++ Programming
    Replies: 19
    Last Post: 07-14-2006, 03:22 PM
  4. making a diamond using functions
    By Nikisha in forum C++ Programming
    Replies: 4
    Last Post: 03-30-2003, 09:05 PM
  5. Diamond
    By C++Nerd in forum C++ Programming
    Replies: 1
    Last Post: 10-04-2002, 04:36 AM