(C++) cout로 그림 그리기
간단한 프로그램

(C++) cout로 그림 그리기

문자 W를 cout를 통해 그려준다.

#include<iostream>
using namespace std;

int main() {
			cout << "                  :/+ossyyhhhhhhhhhhhhhhhhysooooooo+//:..`                                          " << endl;
	cout << "        `dNNy+/`--:/+oooyMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNho+/:.`           ...              " << endl;
	cout << "       :hhoNN+`//:..```.MMMMMMMMMMMMMMMMMMMNMMMMMMMMMMMMMMMMMMMd``..:/ooooo++/ oyyNNN+              " << endl;
	cout << "        :hhoNN/``/+ooo+o+++/::...``````````.-://-+so/://+ohsyhdmmsooo+/:-.````` hMsod/m`            " << endl;
	cout << "        `oNMMMNh:-.``             `.-.-/+++/-.:ymNMNNmy/..`  ```./o+/..-/+ooo+/ hM/sm:s`            " << endl;
	cout << "          :mMMMMNo`            -+hms/:-.`   `:+oMMhssyhs`          .:::o+//:-`` `/y:MMM/            " << endl;
	cout << "           -dMMMMMd:        ./ohNh-           :mMs`                 :dd-```.-/+:` d`NMMd            " << endl;
	cout << "            `yMMMMMNd.   `/+//dMy`           :NMo`                `oNm.       `-++o-yMMM:           " << endl;
	cout << "             `oNMMMMs: .+o-`/NMs`   `.-::///smMh::-.`            `yMN-           `oNmMMmh           " << endl;
	cout << "               /NMMMy/+o-  +NMs`-/shmmmmddddhddddmmmmho/-`      `hMN/             /hoMd.N.          " << endl;
	cout << "                +NMMNs-   /NMN/dNmds+:-.```` .y``.-:+sdmNds:.   yMMy              .--Ns sy.         " << endl;
	cout << "                 +Md:    .NMMm/s:.`          y:       `.:sdNms-/MMN-              -dNMs  /h/        " << endl;
	cout << "               .oms`   `//MNy:`             /s            `:smhyMMh                .ymh`  .ho       " << endl;
	cout << "              .dm:`   :dN/o.               .h`               .:sMMs                  .`    `ho`     " << endl;
	cout << "              sm-   `yNNs`          ``.... o/..`               .sN+y.                       sMy.    " << endl;
	cout << "             +m-   -dMd-        `-/o+/:---`.`-://:.`             -:Mm:                     :MMMm-   " << endl;
	cout << "            /N/   :mMh`       -+oyo/::- `..````  `://.            `yMN:                    mMMMMd   " << endl;
	cout << "           -Ny   :NMy`      -yNMMMMMNdsymNmmdhhyoo/:/+-`           `sMN/                  :MMMMMN`  " << endl;
	cout << "           hN.  .mMy      `sNMMMMMNdydMMMMsMmoMyhMhNMNmm+            yMN.                 dMMMMMM`  " << endl;
	cout << "          :Ms   yMd`     .dMMMMMMmymMMMmyMshm/N:NshNhhMMMs`          `mMd                .MMMMMMM`  " << endl;
	cout << "          hM.  -MM/     `dMMMMMMmyMMMmsNh+sshhhhy+yodmhhMMy           /MM/               /MMMMMMM`  " << endl;
	cout << "         `Nd   yMd      oMMMMMMNsMMMhmmoohMMMMMMMMms+ymNdmM+           dMd               yMMMMMMM`  " << endl;
	cout << "         -Ms  `NMs      mMMMMMMhmMMMNhs/NMMMMMMMMMMMosyhmMMN`          oMM`             .NMMMMMMM`  " << endl;
	cout << "         -M+  -MM/     .MMMMMMM+MMMdhh+hMMMMMMMMMMMMm+yyhhMM/          :MM:             oMMMMMMMm   " << endl;
	cout << "         /M:  -MM:     :MMMMMMMsMMMhhy+dMMMMMMMMMMMMm/yyhhMM+          -MM/             yMMMMMMMm   " << endl;
	cout << "         +M+  -MM/     /MMMMMMMymMMMNysoMMMMMMMMMMMM+ohNMNMM+          :MM:             mMMMMMMMy   " << endl;
	cout << "         .My  .MM+     -MMMMMMMNyMMNdNd+omMMMMMMMMmo+mmyyNMM:          /MM-            `NMMMMMMMo   " << endl;
	cout << "          my   mMh      mMMMMMMMdyMMMhhNoo+yyhhhssosNyymMhNm           yMN`            .MMMMMMMM:   " << endl;
	cout << "          om   oMN.     omMMMMMMMdhNMMMymN/N+dyym+NdsmMNyhM:          `NMs             /MMMMMMMM.   " << endl;
	cout << "          `m:  `NMy      /y:/oydmNNydNMMMdmMoMN+MmhMNNhymM+           sMN.             /MMMMMMMm    " << endl;
	cout << "           :d`  +MM+     `sd:  ```-:..+hdmNNNMMmMMdyyymMN/           /MMo              oMMMMMMMs    " << endl;
	cout << "            yo   yMN:      /hh-         ```..-::/.`:osys-           -NMh`              oMMMMMMM/    " << endl;
	cout << "            .m-  `hMN:      `+hs:`                 `-+.            :mMh`               oMMMMMMN`    " << endl;
	cout << "             /d`  `yMN-       `-sys/-           .-:/.`            /NMy`                oMMMMMMy     " << endl;
	cout << "             `hh`  `+m:h-        `./+`h--++/://:-.`             .yMNo`                 oMMMMMM:     " << endl;
	cout << "            -dMMh`   .sMN:`           N-``.```                 +mMd:                   /MMMMMd`     " << endl;
	cout << "          -sNMMMds-   oMM/ys-         d:                    -o+dd+`                    -MMMMN:      " << endl;
	cout << "        .sNMMMMN/.:+` `mM/hNNh+.`     y/                 .//NMs-`                      `MMNy-       " << endl;
	cout << "      .sNMMMMMNms  ./-`:Nd.-odNNds/.` o+            .-:ohNNoMMs                        .o/-         " << endl;
	cout << "    `omMMMMMNy:.     -/:+Nh` `-+hmNNmhdd+/::::://oyhmNNmdo:/MMy               `.+o-  `+y-           " << endl;
	cout << "  `/dMMMMNdo-          ./hMy.    `-:+shdNMNmmmmmmdhyo:-`   /MMh               +mMd../y/`            " << endl;
	cout << "  /MMohmds:o/:.`         `omm/.`        sMm-....`          `NMN.           ...-+M+`d+`              " << endl;
	cout << "  +MMsys-``.-/+os+/:-.``   .//://.`     `dMy                :NMs        `./yydyhM-+y                " << endl;
	cout << "  :ydh+++-:os+-..-dMMNdhs+/-.```.://.`  /sMMs---.            -dN-   `.:+/:. -ymMMsm:                " << endl;
	cout << "            `-/ossmMMMMMMMMMNmmhyso+ooo/-:osyyo/.           ``.oh:/+/:.    .s.NMMN-                 " << endl;
	cout << "                 `/shmNNMMMMMMMMMMMMMMMMMmddhyyss++/////osoooooo+/:--.``  `h-hMMN/                  " << endl;
	cout << "                      .-/+shdmNNNMMMMMMMMMMMMMMMMMMMMMMMMh:::::::::::++o:yh+oNNMo                   " << endl;
	cout << "                              `.-:/osyhddNNNNMMMMMMMMMMMMo-----------.``-Md s/:o`                   " << endl;
	cout << "                                          ``.:://++oooyyo+::-------:/+o+:Nmomsd/                    " << endl;
	cout << "                                                                         `.ydh.                     " << endl;
}

결과물

'간단한 프로그램' 카테고리의 다른 글

슬라이딩 퍼즐 구현하기  (0) 2021.06.14
빙고 게임 구현하기  (0) 2021.06.10
야구게임 구현하기  (0) 2021.06.09
던전에서 몬스터 잡는 게임 구현하기  (0) 2021.06.08
별표찍기  (0) 2021.06.06
구구단 구현하기  (0) 2021.06.05
가위바위보 구현하기  (0) 2021.06.03