function shuffle(array) {
// original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)
for (var j, x, i = array.length; i; j = parseInt(Math.random() * i), x = array[--i], array[i] = array[j], array[j] = x);
return true;
}
find /myfolder -name "*970.jpg" -exec mogrify -resize 256x256 {} \;
Я хочу спокойно без лишних велосипедов конвертировать строки в числа и обратно.
#include <iostream>
#include <string>
int main()
{
std::string number = "123456";
int value = std::stoi(number);
std::cout << value; // 123456 (int)
std::string number2 = std::to_string(value);
std::cout << number2; // 123456 (string)
}
if ( one == 2 && two == 2 && three == 2 )
{
losNL[ i ].priority = 3;
}
if ( one == 2 && two == 2 || one == 2 && three == 2 || two == 2 && three == 2 )
{
losNL[ i ].priority = 2;
}
if ( one == 2 || two == 2 || three == 2 )
{
losNL[ i ].priority = 1;
}