This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading; | |
| namespace DelegateTest | |
| { | |
| class Algorithm | |
| { | |
| public int Key { get; set; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 | |
NewerOlder