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
using namespace std; | |
const int BUFF = 256; | |
std::string reads(const std::string& message, istream &in) | |
{ | |
char s[BUFF]; | |
cout << message; | |
in.getline(s, BUFF); | |
return s; | |
} |
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 <string> | |
const int BUFF = 256; | |
using namespace std; | |
string read(const string& message) { | |
string s; | |
cout << message; |
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
http://maps.yandex.ru/print/?text=%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D1%8F%2C%20%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0%2C%20%D0%A7%D0%B0%D1%81%D0%BE%D0%B2%D0%B0%D1%8F%20%D1%83%D0%BB%D0%B8%D1%86%D0%B0%2C%2020%D1%811&sll=37.529519%2C55.810501&ll=37.528554%2C55.804503&spn=0.040340%2C0.018926&z=15&l=map |
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
import ImageDraw | |
import Image | |
def draw_circle(draw, x, y, r, color=(0, 0, 0), bg=(255, 255, 255), d=2): | |
draw.ellipse((x - r, y - r, x + r, y + r), fill=color) | |
r -= d | |
draw.ellipse((x - r, y - r, x + r, y + r), fill=bg) | |
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
// заголовочный файл | |
// ИУ5-22 Разумов Александр | |
// 28.03.2013 18:51 | |
#include <string> | |
#include <iostream> | |
/** | |
* шаблон для вывода значения переменной с пояснением. | |
* формат: var_name delimiter val \n |
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
import os | |
import sys | |
import datetime | |
import shutil | |
template_name = 'LABN_216' | |
template_path = os.path.join('template', template_name) | |
def path(filename): |
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
# coding=utf8 | |
import logging | |
__ch = logging.StreamHandler() | |
__ch.setLevel(logging.DEBUG) | |
__formatter = logging.Formatter('%(asctime)s.%(msecs)d [%(levelname)s] %(message)s', r'%d.%m.%y %H:%M:%S') | |
__ch.setFormatter(__formatter) | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.DEBUG) | |
logger.addHandler(__ch) |
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 "stdafx.h" | |
using namespace std; | |
int iMasMultiply(const int *mass, const int n) | |
{ | |
int m = 1; | |
for (int i = 0; i < n; i++) m *= *(mass + i); | |
return m; | |
} |
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 "stdafx.h" | |
#include "lab1_216.h" | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#define max(a,b,c) ((a > b) ? ((a > c)? a : c) : (b > c) ? b : c) | |
using namespace std; | |
const int VAR = 16; |