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 <iostream> | |
#include <memory> | |
#include <mutex> | |
#include <type_traits> | |
namespace utils { | |
template <typename T, typename Interface> | |
struct singleton : public Interface | |
{ |
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 <chrono> | |
#include <functional> | |
#include <iostream> | |
#include <memory> | |
#include <queue> | |
namespace Async { | |
struct Task | |
{ |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <glib.h> | |
typedef enum { | |
JSON_STR, | |
JSON_INT, | |
JSON_FLOAT, | |
JSON_ARRAY, |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <locale.h> | |
#include <time.h> | |
void display(int *matrix, int dimension, const char *name) { | |
int i, j; | |
printf("Матрица %s:\n", name); | |
for (i = 0; i < dimension; i++) { |
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 <stdlib.h> | |
# include <stdio.h> | |
# include <math.h> | |
# include <time.h> | |
# include <stdint.h> | |
int main ( ); | |
double cpu_time ( ); | |
void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ); | |
double ddot ( int n, double dx[], int incx, double dy[], int incy ); |
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 <stdio.h> | |
#include <glib.h> | |
#include "signal-test-dbus.h" | |
static GSList *subscribers = NULL; | |
static GDBusConnection *connection = NULL; | |
static void emit_targeted_signal(gpointer subscriber, G_GNUC_UNUSED gpointer user_data) { | |
g_print("Send signal to %s\n", (char *)subscriber); | |
g_dbus_connection_emit_signal(connection, |
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 <iostream> | |
#include <deque> | |
using namespace std; | |
typedef int8_t i8; | |
typedef int16_t i16; | |
deque<int> int2arr(i8 a); | |
deque<int> int2arr(i16 a); |
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
/* Отключение предупреждений Visual Studio при | |
использовании "небезопасных" функций (strtok) */ | |
#pragma warning(disable : 4996) | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <locale> | |
#include <windows.h> |
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 <iostream> | |
#include <cassert> | |
using namespace std; | |
// Элемент очереди | |
class Node { | |
public: | |
int value; // Значение | |
Node *last; // Предыдущий элемент |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder