#include "g:\victor\vitodef.h" //Ron Sinclair, ASSIGNMENT 5, SCREEN DESIGNS/LAB EXPERIMENT //prototypes void drawtri1 (int, int, char); //points up, left justified void drawtri2 (int, int, char); //points down, left justified void drawtri3 (int, int, char); //points up, right justified void drawtri4 (int, int, char); //points down, right justified void uppyr (int, int, char); //points up, a "pyramid" //function definitions void drawtri1(int off, int high, char symbol) { int ctr; for(ctr=1; ctr<=high; ctr++) { drawline (ctr, symbol); skiplines (1); } } void drawtri2 (int off, int high, char symbol) { int ctr; for(ctr=high; ctr>=1; ctr--) { drawline(ctr, symbol); skiplines(1); } } void drawtri3 (int off, int high, char symbol) { int ctr, int off; for (ctr=1; ctr<=high; ctr++) { drawblanks(off); drawline(ctr, symbol); skiplines(1); off-- } } void drawtri4 (int off, int high, char symbol) { int ctr, int off; for (ctr=high; ctr>=1; ctr--) { drawblanks(off); drawline(ctr, symbol); skiplines(1); off-- } } void uppyr (int off, int high, char symbol) { int ctr, int off; for (ctr=1; ctr<=high; c++) { drawblanks(off); drawline (ctr+2, symbol); skiplines(1); } }