Smiley Pyramid

Output a pyramid of smiley faces.

$ ./smileypyramid 18 ) :) :-) :):) :-):) :-):-) :-):):) :):):):) :-):-):-) :-):):-):) :-):):):):) :):):):):):) :-):-):):-):) :):):):):):):) :-):):-):):-):) :):):):):):):):) :-):):):):):):):) :-):-):-):-):-):-)

Rust version

Build and install with cargo.

C++ version

Installation

Build with sakemake or qmake.

Linux

Install with:

install -Dm755 smileypyramid /usr/bin/smileypyramid

BSD or macOS

Build with sakemake or qmake.

Install with:

install -d /usr/local/bin
install -m755 smileypyramid /usr/local/bin/smileypyramid

Requirements

If docopt is not installed in /usr/include and /usr/bin you might need to either edit the Makefile or edit smileypyramid.pro and then generate a new makefile with qmake.

General info