5 Computer -- Data Science

What's wrong with this code?// circstrc.cpp// circles as graphics objects#include “msoftcon.h” // for graphics functions////////////////////////////////////////////////////////////////struct circle //graphics circle{int xCo, yCo; //coordinates of centerint radius;color fillcolor; //colo...

What's wrong with this code?

// circstrc.cpp// circles as graphics objects#include “msoftcon.h // for graphics functions////////////////////////////////////////////////////////////////struct circle //graphics circle{int xCoyCo; //coordinates of centerint radius;color fillcolor; //colorfstyle fillstyle; //fill pattern};////////////////////////////////////////////////////////////////void circ_draw(circle c){set_color(c.fillcolor); //set colorset_fill_style(c.fillstyle); //set fill patterndraw_circle(c.xCoc.yCoc.radius); //draw solid circle}//--------------------------------------------------------------int main(){init_graphics(); //initialize graphics system//create circlesChapter 5 17406 3087 CH05 11/29/01 2:23 PM Page 174circle c1 = { 1575, cBLUE, X_FILL };circle c2 = { 41127, cRED, O_FILL };circle c3 = { 65184, cGREEN, MEDIUM_FILL };circ_draw(c1); //draw circlescirc_draw(c2);circ_draw(c3);set_cursor_pos(125); //cursor to lower left cornerreturn 0;}

Close Open App