Skip to content

Instantly share code, notes, and snippets.

View Poplava's full-sized avatar

Ihor Poplavskyi Poplava

View GitHub Profile
using System;
namespace DataStructuresLab
{
class Node<K, V> where K : IComparable where V : IComparable
{
private K key;
private V data;
public Node<K, V> rightNode;
public Node<K, V> leftNode;
#include <iostream>
using namespace std;
class Sort {
private:
bool isSorted = false;
char* sortedBy;
int* data;
int n, c = 0, m = 0;
#include <iostream>
using namespace std;
class Arg
{
private:
int _n;
int _a;
Arg* _der;
#include <string>
using namespace std;
struct Stack
{
char x;
Stack* prev;
};
#include <fstream>
#include <iostream>
using namespace std;
struct Node
{
float x;
Node* prev;
Node* next;
#include <fstream>
#include <iostream>
using namespace std;
typedef Node* pnode;
void addFirst(pnode &first, int x);
void addLast(pnode &last, int x);
void createList(pnode &first, ifstream &f, char* name);
/*
Дан текстовый файл f.
Слова в файле разделены одним или группой пробелов.
Удалить из файла все однобуквенные слова и лишние пробелы.
Результат записать в файл g.
*/
#include <iostream>
#include <fstream>
#include <string>
/*
Дан файл f, компоненты которого являются целыми числами.
Число компонент файла делится на 2n.
Записать в файл g наибольшее значение первых 2n компонент файла f, затем следующих 2n и т.д.
*/
#include <iostream>
#include <fstream>
using namespace std;
@Poplava
Poplava / Lab4_2.cpp
Created October 30, 2014 16:10
Education
#include <iostream>
using namespace std;
int b_max(int b1[]) //Èùåì íàéáîëüøèé ýëåìåíò âåêòîðà
{
int max1;
max1 = b1[0];
for (int i = 1; i < 5; i++)
{
if (b1[i] > b1[i - 1])
{
"name": "someModule",
"environment": "webSite",
"layouts": {
"layouts.column1": {
"depends": [
"yii.jquery"
],
"files": {
"js": [