Mirixy17 / MindPower

1 stars 0 forks source link

pocetak tetrisa #18

Open Mirixy17 opened 3 years ago

Mirixy17 commented 3 years ago
#include <iostream>
#include <Windows.h>
#include <chrono>
#include <thread>
#include <vector>

int main()
{
    std::vector<std::vector<char>> igra;
    igra.resize(5);

    for (std::vector<char>& red : igra)     
        for (int i = 0; i < 20; i++)
            red.push_back('_');

    for (std::vector<char>& red : igra)
    {
        std::cout << '\n';
        for (char slovo : red)
        {
            std::cout << slovo;
        }
    }
}
lukarolak commented 3 years ago