No Description

main.cpp 703B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include <QApplication>
  2. #include <iostream>
  3. #include <QLineEdit>
  4. #include <QObject>
  5. #include <QAction>
  6. #include <QPushButton>
  7. #include <cmath>
  8. #include <QDebug>
  9. #include "drawingWindow.h"
  10. int main(int argc, char *argv[]) {
  11. QApplication a(argc, argv);
  12. DrawingWindow w;
  13. w.resize(500, 500);
  14. w.show();
  15. int size = 333, level = 3;
  16. // Call the snowflake recursive function
  17. // Invoca la funcion recursiva del copo de nieve
  18. w.snowHelper(size,level);
  19. // Calls de boxes recursive funtion
  20. // Invocacion de la funcion recursiva para las cajas.
  21. // (x, y, sideLength, shrinkFactor, smallest Length, Qt::<color>)
  22. // YOUR CODE HERE
  23. return a.exec();
  24. }