// put your name here // #include #include "rect.h" #include "triangle.h" #include "ellipse.h" using namespace std ; // No need to change the next line SimpleWindow W("FaceRead", 12, 16) ; // enum color letter2color(char L) // This routine maps characters to colors // The mapping is: // 'k' => Black // 'w' => White // 'r' => Red // 'g' => Green // 'b' => Blue // 'y' => Yellow // 'c' => Cyan // 'm' => Magenta // The corresponding upper case letters // are also mapped. If the argument letter // is none of the above, the color Black is // returned. // Do NOT modify this function enum color letter2color(char L) { char ColorLetters[] = "kwrgbycm" ; int i ; for (i = 0; i < 8; ++i) if (tolower(L) == ColorLetters[i]) return((enum color)i) ; return (Black) ; } int ApiMain() { float centX, centY, width, length ; char colorLet, shapeLet ; char IgnoreMe[256] ; ifstream fin("C:\\Files\\Lab06.txt") ; W.Open() ; while(fin >> centX >> centY // Fill in here to read the line ) { Position P(centX, centY) ; // Fill in here to draw the shape fin.getline(IgnoreMe, 255) ; } return 0 ; } // No need to change the rest of the file int ApiEnd() { W.Close() ; return 0 ; }