- controller\register Константы
This file contains 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> | |
#include <windows.h> | |
using namespace std; | |
class Class1 | |
{ | |
public: | |
double i; |
This file contains 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
/* Типы */ | |
let redColor = "red"//константа, которую нельзя изменять | |
var a = 5 //переменная, которую можно изменять | |
println("Red color =\(redColor)")//Вывод в консоль | |
let hex = 0xff //Создание константы 16-ичного числа ff = 255, b=8-ичная | |
let c = (Double)b + a //преображение типа | |
let c : Double = 5;//Явное назначение типа | |
typealias AlexBakay: Int | |
let c: AlexBakay =5 | |
let mas = (1,"Hello",4.3,true)//Тюпл |
This file contains 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
/* | |
Objective-C — компилируемый объектно-ориентированный язык программирования корпорации Apple, построенный на основе языка Си и парадигм | |
Smalltalk. ObjC был создан Брэдом Коксом в начале 1980х в его компании Stepstone. | |
Структура именования файлов: файлы с расширением - h являются заголовками с описанием классов, функций также как в С и С++, | |
файлы с расширением - m соответственно содержат реализацию классов и методов. | |
NSobject – родительский класс Objectiv-C | |
Для обозначения объектов используется специальный тип id. Переменная типа id фактически является указателем на произвольный объект. | |
*/ | |
//Объявление класса создается в заголовочном файле с расширением .h и использует синтаксис: |
This file contains 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
<?php | |
// Positions::BACK_END_DEVELOPER - бекенд разработчик | |
// Positions::FRONT_END_DEVELOPER - разработчик | |
// Positions::CEO - Исполнительный директор | |
// Positions::ANALIST - Аналитик | |
// Positions::MANAGER - Менеджер | |
// Positions::DESIGNER - Дизайнер | |
$company = new Company('IT 2.0'); //Создание новой компании |
This file contains 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
uses graphABC,crt; | |
const r: array [1..10] of byte=(0,0,0,0,8,8,0,0,0,0); | |
g: array [1..10] of byte=(160,145,137,127,121,121,127,137,145,160); | |
b: array [1..10] of byte=(227,203,189,135,167,167,135,189,203,227); | |
procedure Krug (rr: integer); | |
begin | |
setbrushcolor(rgb(r[1],g[1],b[1])); | |
for i: integer :=1 to 10 do | |
begin |
This file contains 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
unit Unit2; | |
interface | |
uses | |
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, | |
Dialogs, ExtCtrls, StdCtrls, jpeg, ComObj, Grids; | |
type | |
TForm2 = class(TForm) |
This file contains 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
unit Unit1; | |
interface | |
uses | |
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, | |
Dialogs, StdCtrls, jpeg, ExtCtrls, Buttons,Unit2; | |
type | |
TForm1 = class(TForm) | |
BitBtn1: TBitBtn; |
This file contains 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
program Project2; | |
var | |
c: char; | |
f: text; | |
a,rem1,rem2: integer; | |
begin | |
assign(f, 'nine.in'); | |
reset(f); |
NewerOlder