I hereby claim:
- I am urmet on github.
- I am urmet (https://keybase.io/urmet) on keybase.
- I have a public key whose fingerprint is A512 F197 8634 A13D 4C7F 80AA 8365 A3CA 2FDB B14F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
diff -Naur libcutl-1.10.0.orig/cutl/re/re.cxx libcutl-1.10.0/cutl/re/re.cxx | |
--- libcutl-1.10.0.orig/cutl/re/re.cxx 2017-09-30 14:48:31.416316263 +0300 | |
+++ libcutl-1.10.0/cutl/re/re.cxx 2017-09-30 14:55:31.316907233 +0300 | |
@@ -190,6 +190,227 @@ | |
return std::regex_search (s, impl_->r); | |
} | |
+ // If we are using C++11 regex then extend the standard ECMA-262 | |
+ // substitution escape sequences with a subset of Perl sequences: | |
+ // |
package teema1; | |
/** | |
Created by kasutaja on 19.10.2015. | |
*/ | |
public class Random { | |
static double korrutaKolmArvu(double a, double b, double c) { | |
valjasta(a, b, c); | |
return a * b * c; | |
} | |
static void placeShip(int[][] laud, int len) { | |
Random r = new Random(); | |
int suund = r.nextInt(2); // [0,n) | |
if (suund == 1) { // vertikaalne | |
int y = r.nextInt(laud.length - len) | |
int x = r.nextInt(laud[y].length) | |
for (int i = 0; i < len; i++) { | |
laud[y + i][x] = 1; | |
} | |
} else { |
#include <iostream> | |
#include <vector> | |
using std::cin; | |
using std::cout; | |
using std::endl; | |
enum color { | |
Black, |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
/* glib funktsioonid */ | |
#include <glib.h> | |
/* lisandmooduli kirjutamiseks vajalikud funktsioonid ja definitsioonid */ |