// 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 function 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 input letter // is none of the above, the color Black is // returned. // Do NOT modify this function enum color letter2color(char L) { char lower = tolower(L); switch(lower) { case 'k': return (Black); case 'w': return (White); case 'r': return (Red); case 'g': return (Green); case 'b': return (Blue); case 'y': return (Yellow); case 'c': return (Cyan); case 'm': return (Magenta); default: return (Black); } } int ApiMain() { float centX, centY, width, length ; char colorLet, shapeLet ; char IgnoreMe[256] ; ifstream fin ; fin.open("Lab09.txt") ; W.Open() ; while(fin >> centX >> centY // Fill in here to read the line ) { fin.getline(IgnoreMe, 255) ; Position P(centX, centY) ; // Fill in here to draw the shape } return 0 ; } // No need to change the rest of the file int ApiEnd() { W.Close() ; return 0 ; }