Subscribe to Bagunas' Blog        RSS Feed
-----

LESSON 3: MAKING A GRAPHICS IN CONSOLE USING C++ COMMANDS, cout<<

Icon Leave Comment
Did you know that you have many things to do with your console? Exploring and playing with this programming languages is more fun, like what I did, I made a graphics using C++, here's my code! Enjoy this one ^^ .

==========================================

#include<iostream.h>
int main()
(
cout<<"                     +                                           +                " ;
cout<<"                     -                                           -                " ;
cout<<"                    ---                                         ---                 " ;
cout<<"                   =====                                       =====                 " ;
cout<<"                  =======                                     =======             " ;
cout<<"                 =========                                   =========               " ;
cout<<"                -----------                                 -----------             " ;
cout<<"               =============                               =============           " ;
cout<<"              +++++++++++++++                             +++++++++++++++         " ;
cout<<"             00000000000000000                           00000000000000000      " ;
cout<<"            iiiiiiiiiiiiiiiiiii                         iiiiiiiiiiiiiiiiiii       " ;
cout<<"           000000000000000000000                       000000000000000000000          ";
cout<<"          ***********************                     ***********************      " ;
cout<<"          ||||||||        ||||||||                    ||||||||        ||||||||        " ;
cout<<"          ||||||||        ||||||||                    ||||||||        ||||||||        " ;
cout<<"          ||||||||        ||||||||_   _  _  _   _   _ ||||||||        ||||||||        " ;
cout<<"          ||||||||        |||||||| |_| |_|_| |_| |_| |||||||||        ||||||||        " ;
cout<<"          ====================================================================          " ;
cout<<"          ====================================================================             " ;
cout<<"          ====================================================================            ";
cout<<"          ====================================================================             " ;
cout<<"          ========================---B A G U N A S'---========================          ";
cout<<"          ========================--------------------========================          " ;
cout<<"          ========================----P A L A C E-----+=======================          " ;
cout<<"          ====================================================================             " ;
cout<<"          ====================================================================             " ;
cout<<"          000000000000000000000000         | |         00000000000000000000000         " ;
cout<<"          %%%%%%%%%%%%%%%%%%%%%%%%         | |         %%%%%%%%%%%%%%%%%%%%%%%            " ;
cout<<"          @@@@@@@@@@@@@@@@@@@@@@@@         | |         @@@@@@@@@@@@@@@@@@@@@@@         " ;
cout<<"          !!!!!!!!!!!!!!!!!!!!!!!!         | |         !!!!!!!!!!!!!!!!!!!!!!!             " ;
cout<<"                                 .                     .                                      " ;
cout<<"                                .                       .                                   " ;
cout<<"                               .                         .                                     " ;
return 0;
}



==========================Attached Image


make sure that you will arrange the symbols properly of what graphics you are trying to do. You can make a boat, hello ketty, a heart, diamond , its up to you if what you preferred.

You can used a unique symbols using an ASCII TABLE.
Attached Image

To try that table just press ALT + <symbol code> .

0 Comments On This Entry

 

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

July 2014

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
27282930 31   

Tags

    Search My Blog

    0 user(s) viewing

    0 Guests
    0 member(s)
    0 anonymous member(s)

    Categories