Skip to content

Instantly share code, notes, and snippets.

View Aracturat's full-sized avatar
🎯
Focusing

Nikolay Dozmorov Aracturat

🎯
Focusing
  • Novosibirsk
View GitHub Profile
void MainWindow::updateView()
{
for (int x = 0; x < world -> getHeight(); x++)
{
for(int y = 0; y < world -> getWidth(); y++)
{
if (world -> getStatusOfCell(x, y)) {
pushButton[x*world->getHeight() + y]->setGeometry(x*BUTTON_HEIGHT, y*BUTTON_WIDTH, std::rand() % BUTTON_HEIGHT, std::rand() % BUTTON_WIDTH);
QString r = QString::number(std::rand() % 256, 16);
using System;
using System.Threading;
namespace DelegateTest
{
class Algorithm
{
public int Key { get; set; }
}
#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
double polynom(double x, double a[], int n)
{
double p_val = 0; // p_val не очень говорящее название переменной. Лучше написать что-то типа sum