This file contains 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 <iostream.h> | |
#include <conio.h> | |
class ulamki { | |
private: | |
int licznik; | |
int mianownik; | |
public: | |
ulamki(int l = 0, int m = 0) { //konstruktor | |
licznik = l; |
This file contains 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 <iostream> | |
#include <list> | |
using namespace std; | |
class Node { | |
public: | |
int vBegin, vEnd, value; | |
}; |
This file contains 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
class SimpleHash { | |
private: | |
// data | |
string * m_pData; | |
int * counter; | |
int maxIndex; | |
int numberOfWords; |
This file contains 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
package quicksort; | |
import java.util.Scanner; | |
import java.util.Random; | |
class Stack { | |
private int maxSize; // rozmiar tablicy zawierającej stos | |
private int[] stack; // tablica zawierająca stos | |
private int top; // indeks szczytu stosu |
This file contains 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 <string> | |
#include "Strings.h" | |
/**** Konstruktory i destruktor ****/ | |
//--begin | |
Strings::Strings() { | |
elements = new char[1]; | |
if (elements == NULL) throw elements; | |
elements[0] = '\0'; |
This file contains 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 <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
int getWeekDay( char * date ) { | |
const char * DELIMITER = "/"; | |
char* dateParts; | |
char __temp[12] = ""; | |
dateParts = strtok(date, DELIMITER); | |
while (dateParts != NULL) { |
This file contains 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
public class CheckNumber { | |
final int zero = 4; | |
final int numeric = 3; | |
final int minusplus = 1; | |
final int dot = 2; | |
final int exp = 6; | |
final int other = 5; | |
This file contains 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
create function ufnZ9(@Data SMALLDATETIME) | |
RETURNS nvarchar(20) | |
AS | |
BEGIN | |
RETURN (CASE DATEPART(dw,@Data) | |
WHEN 1 THEN 'Poniedziałek' | |
WHEN 2 THEN 'Wtorek' | |
WHEN 3 THEN 'Środa' | |
WHEN 4 THEN 'Czwartek' | |
WHEN 5 THEN 'Piątek' |
This file contains 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
public class Sort { | |
public static final int NUM_ELEMENTS = 10; | |
/** | |
* swap - swap the values of two variables. | |
* Used by several of the sorting algorithms below. | |
**/ | |
private static void swap(int[] arr, int a, int b) { | |
int temp = arr[a]; | |
arr[a] = arr[b]; |
This file contains 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
package web; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
public class WebReader { |