Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
1.1 kB
4
Indexable
Never
#include <iostream>
#include <SFML/Graphics.hpp>
using namespace std;

int main()
{
    double granica_rasceta, granica_rasceta_2;
    double st1;
    cin >> granica_rasceta >> granica_rasceta_2 >> st1;
    int i = 0;
    int u = 0;
    double xy[1000][2];

    sf::ConvexShape a((granica_rasceta_2 - granica_rasceta));

    while (granica_rasceta <= granica_rasceta_2) {
        if (u == 0)
        {
            xy[i][u] == granica_rasceta;
            u = 1;
        }
        if (u == 1)
        {
            xy[i][u] == granica_rasceta * granica_rasceta;
            u = 0;
        }
        cout << xy[i][u] << endl;
        a.setPoint(i, sf::Vector2f(granica_rasceta, granica_rasceta * granica_rasceta));
        granica_rasceta += st1;
        i++;
    }
    a.setPoint(i, sf::Vector2f(granica_rasceta_2, granica_rasceta_2 * granica_rasceta_2));
    sf::Window window(sf::VideoMode(granica_rasceta_2 - granica_rasceta, granica_rasceta_2 * granica_rasceta_2 * st1), "victory");
    while (true)
    {
        sf::RenderWindow(window);
    }
    return 0;
}
Leave a Comment