ASCII drawing

Started by
2 comments, last by yewbie 13 years, 5 months ago
Hey I have been programming for many years but I am assigned a homework to draw this ASCII mickey mouse, and I can't figure it out. Can someone point me in a direction? Even the ears are not following the same pattern.
ps: I am not allowed to print a single line with a single print command

                                              ##########                                            ##############                                          ##################                                        ######################                                        #######################          #####                         #######################       ###########                      ########################     ###############                    ########################    #################                   ########################   ###################                  ########################  #####################                 ######################## #######################                #################################################               ################################################     #########################################################   ########################################################## ###############################################################   ### ##  #######################################   ###  #    ########### #########################   ###  ##   ############ ########################   ###   #     ###########  #####################      #####    #####    #######  #####################     #     # #      #   #######  #####################    #      # #       #  #######                 #######   #   #####  ##### #  #######                 ########  # ######  ###### #  #######                 ######    #  #####  #####  #  #######                 #######   # ######  ###### #  #######                 ########  #  ####    ##### #  #######                 ######    #   ###########  #  #######                 #######   #  ############# #  #######                 #         ##################       ##                  ##       #################    #  ##                  ##       ###############    ##  ##                  #        ############     ###  ##                   ##      ########       ####  ##                   ##      ###          #####  ##                       ########              ###                          ########    ########                      ############  ############                  ################################

Advertisement
What topics are you learning right now in class? That's generally a good idea of what you're supposed to use to solve the current homework.

-me
I should draw it by using for loops and nested for loops.
Why not add all that data to a 2d Char array
and print it out like so, I'm assuming this is what you mean
Although this may defeat the purpose of the lesson


char micky[50][50];for (int x=0;x<50;x++ ){   for (int y=0;y<50;y++ )   {      sprintf("%c", micky[x][y]);      if(x==50)       {         //nextline         sprintf("\n");       }   }}


[Edited by - yewbie on October 26, 2010 12:56:06 PM]

This topic is closed to new replies.

Advertisement