Skip to content

Instantly share code, notes, and snippets.

View resure's full-sized avatar

Gadzhi Gadzhiev resure

View GitHub Profile
@resure
resure / gist:835270
Created February 19, 2011 18:51
Лаба для Саркиса
#include <stdio.h>
#include <locale.h>
#define N 4
int main () {
setlocale(0, "russian");
int a[N][N], i, j, buf, min, imin;
// Чтение матрицы
@resure
resure / Работа с массивами
Created February 22, 2011 18:35
Работа с массивами
#include <stdio.h>
#include <locale.h>
#define ARRAY_SIZE 10
using namespace std;
int main() {
setlocale(0, "russian");
float a[ARRAY_SIZE][ARRAY_SIZE];
float max, min;
#include <stdio.h>
int main() {
printf("Hello, world!");
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int i,n;
float a=1.0,b=2.0,s=0.0;
cout<<"Input n";
set :user, 'resure'
set :application, "milesmain"
set :domain, '42miles.net'
set :repository, "#{user}@#{domain}:git/#{application}.git"
set :deploy_to, "/home/#{user}/#{domain}"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, domain # Your HTTP server, Apache/etc
#include <stdio.h>
#include <locale.h>
#include <string.h>
#include <stdlib.h>
int main() {
int i=-1, nums[100], pr = 0, n = 0, max[3];
char str[100][100];
setlocale(0, "russian");
max[0] = max[1] = max[2] = 0;
#include <stdio.h>
#include <locale.h>
#include <string.h>
#include <stdlib.h>
typedef struct list { list *next; list *prev; char val[100]; };
void print_list( list *element) {
while (element != NULL){
printf("%s ", element -> val);
template< typename T >
class int_vector
{
T* ptr;
int capacity;
int count;
public:
int Capacity()
{
#include <iostream>
#include <locale.h>
#define V true
#include "30_element.h"
#include "30_vector.h"
int main()
{
#include <stdio.h>
#include <string.h>
#include <locale.h>
#define STRLEN 255
int decrypt(int c, int n, bool crypt = false)
{
// Функцию можно вызывать как decrypt( c, n ), где n — ключ, а c - символ.
// А можно и так: decrypt( c, n, 1 ), тогда она будет шифровать символы.