/* Ive modifico el programa en Junio 3 para anadir ventanas para el circulo, el corazon, y la mariposa */ #include "xyplotwindow.h" #include int main(int argc, char *argv[]) { QApplication a(argc, argv); XYPlotWindow wLine; XYPlotWindow wCircle; XYPlotWindow wHeart; XYPlotWindow wButterfly; double y = 0.00; double x = 0.00; double increment = 0.01; // Plot of a segment // Grafica de un segmento for (double t = 0; t < 2*M_PI; t = t + increment) { x = t; y = t; // add x and y as a point in the graph // anade x y y como un punto en la grafica wLine.AddPointToGraph(x,y); } // After all the points have been added, plot and show the graph // Despues que todos los puntos han sido anadidos, grafica y demuestra la grafica wLine.Plot(); wLine.show(); // Plot of a circle // Grafica de un circulo // YOUR CODE FOR THE CIRCLE HERE // TU CODIGO PARA EL CIRCULO VA AQUI // Plot of a heart // Grafica de un corazon // YOUR CODE FOR THE HEART HERE // TU CODIGO PARA EL CORAZON VA AQUI // Plot of a butterfly // Grafica de una mariposa // YOUR CODE FOR THE BUTTERFLY HERE // TU CODIGO PARA LA MARIPOSA VA AQUI return a.exec(); }