Skip to content

Instantly share code, notes, and snippets.

View LifeMoroz's full-sized avatar

Galimov Ruslan LifeMoroz

View GitHub Profile
@LifeMoroz
LifeMoroz / Imperia.cpp
Created September 19, 2012 17:09
Main
#include <iostream>
#include "math.h"
#include <string>
#include <iomanip>
using namespace std;
int main();
class reseach
{
private:
#include <math.h>
#include <windows.h>
#include <iostream>
using namespace std;
int n;
double f(double x)
{
return x - n*cos(x);
}
void first()
@LifeMoroz
LifeMoroz / gist:3767765
Created September 22, 2012 20:39
lab5
#include <iostream>
#include <math.h>
#include <iomanip>
#include <string>
using namespace std;
const int N=30;
string chr,s;
bool bol;
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
void bubbleSort(double array[], int col){
double temp=0;
for (int i=1; i<col ; i++){
for (int j=0; j<col-i; j++){
if (array [j]>array [j+1]){
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
void *uk;
int g;
struct I_print{ //данные для печати результатов интегрирования
char* name;//название функции
double i_sum; //значение интегральной суммы
@LifeMoroz
LifeMoroz / gist:3894463
Created October 15, 2012 19:07
Full lab_7
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
int g;
struct I_print{ //данные для печати результатов интегрирования
char* name;//название функции
double i_sum; //значение интегральной суммы
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
void main()
{
setlocale (0, "russian");
double n;
double k;
double i;
#include <stdlib.h> // Для функции exit()
#include <fstream> // Для файловых потоков
#include <iostream>
#include "ConsolCyr.h"
#include <string>
using namespace std;
const int lenName = 13; // max длина имени файла
const int lenString = 60; // Длина вспомогательного массива
int sumS(char *chr); //подсчет суммы кодов
#include <stdlib.h> // Для функции exit()
#include <fstream> // Для файловых потоков
#include <iostream>
#include <windows.h>
//#include "ConsolCyr.h"
#include <string>
using namespace std;
const int lenName = 13; // max длина имени файла
const int lenString = 60; // Длина вспомогательного массива
#include <iostream>
#include <conio.h>
using namespace std;
bool cmp(char s[60],char s1[60], int count)
{
for (int i=0;i<count;i++)
if (s[i]!=s1[i]) return 0;
return 1;
}