Skip to content

Instantly share code, notes, and snippets.

View Poplava's full-sized avatar

Ihor Poplavskyi Poplava

View GitHub Profile
@import "component/vars.less";
@import "currentTheme/theme";
@import "component/styles.less";
@component-color1: #fff;
@component-color2: #f00;
@component-color3: #f90;
@component-color2: #ff0;
{
"name": "spicy.royalBlue",
"environment": "webSite",
"layouts": {
"layouts.column1": {
"depends": [
"plugins.jsError",
"plugins.respond",
"components.appInit",
"components.appUi",
{
"name": "spicy.royalBlue.newTheme",
"extends": "spicy.royalBlue",
"environment": "webSite",
"layouts": {
"landing": {
"depends": [
"plugins.landing"
]
}
{
"name": "someModule",
"environment": "webSite",
"layouts": {
"layouts.column1": {
"depends": [
"yii.jquery"
],
"files": {
"js": [
@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])
/*
Дан файл f, компоненты которого являются целыми числами.
Число компонент файла делится на 2n.
Записать в файл g наибольшее значение первых 2n компонент файла f, затем следующих 2n и т.д.
*/
#include <iostream>
#include <fstream>
using namespace std;
/*
Дан текстовый файл f.
Слова в файле разделены одним или группой пробелов.
Удалить из файла все однобуквенные слова и лишние пробелы.
Результат записать в файл g.
*/
#include <iostream>
#include <fstream>
#include <string>
#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);
#include <fstream>
#include <iostream>
using namespace std;
struct Node
{
float x;
Node* prev;
Node* next;
#include <string>
using namespace std;
struct Stack
{
char x;
Stack* prev;
};