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 <iomanip> | |
#include <cmath> | |
using namespace std; | |
struct BST_node | |
{ | |
int data; | |
BST_node * left, * right; |
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 <iomanip> | |
#include <cmath> | |
using namespace std; | |
template <typename T> | |
struct BST_node | |
{ | |
T data; |
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 <iomanip> | |
#include <cstring> | |
#include <sys/stat.h> | |
#include <pwd.h> | |
#include <grp.h> | |
#include <ctime> | |
using namespace std; |
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
#ifndef TIME_UTILITY_TPL_HPP | |
#define TIME_UTILITY_TPL_HPP | |
#include <string> | |
#include <sstream> | |
#include <chrono> | |
#include <ctime> | |
template <typename Clock, int BufSize> | |
std::string format_time(std::chrono::time_point<Clock> timepoint, std::string format, tm * (*func)(const time_t*)) | |
{ |
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 <cstdlib> | |
using namespace std; | |
int main(int argc, char ** argv) | |
{ | |
int n = 0; | |
int silnia = 1; | |
cout << "\tObliczanie silni" << endl; |
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 <cstdlib> | |
using namespace std; | |
int main(int argc, char ** argv) | |
{ | |
int n = 0; | |
int silnia = 1; | |
cout << "\tObliczanie silni" << endl; |
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 kontener | |
{ | |
int *T, n; | |
public: | |
kontener(int n_) : T(new int[n_]), n(n_) | |
{ | |
std::cout << "tworzenie kontenera o poj. " << n << " pod adresem: " << reinterpret_cast<const void*>(this) << "\n";; | |
} | |
kontener(const kontener& zrodlo) : T(new int[zrodlo.pobierz_n()]), n(zrodlo.pobierz_n()) | |
{ |
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 <sqlite3.h> | |
#include <string> | |
int callback(void *nu, int argc, char **argv, char **colName) | |
{ | |
for (int i = 0; i < argc; ++i) | |
{ | |
std::cout << colName[i] << " = "; | |
if (argv[i]) |
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
#ifndef MODULE_BASE_HPP | |
#define MODULE_BASE_HPP | |
class ModuleBase | |
{ | |
public: | |
virtual void run() = 0; | |
}; | |
#endif |
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 <dlfcn.h> | |
#include <iostream> | |
int main(int argc, char ** argv) | |
{ | |
if (argc == 1) | |
{ | |
std::cerr << "Usage: " << argv[0] << " modules...\n"; | |
return 1; | |
} |
OlderNewer