Generation

generate functionThu, 20 Apr 2023

Sumar 100 números solicitados al usuario, mostrar la suma total

// // main.cpp // // // // Based on the code written by E.C. Stoner // for the course CST112 2016 // // // // // // // // #include "Simple_window.h" // get access to our window library #include "Graph.h" // get access to our graphics library facilities int main() { using namespace Graph_lib; // our graphics facilities are in Graph_lib Point tl(100, 100); // to become top left corner of window Simple_window win(tl, 600, 400, "Canvas"); // make a simple window Polygon poly; // make a shape (a polygon) poly.add(Point(300, 200)); // add a point poly.add(Point(350, 100)); // add another point poly.add(Point(400, 200)); // add a third point poly.set_color(Color::red); // adjust properties of poly

Questions about programming?Chat with your personal AI assistant