Форум программистов, компьютерный форум, киберфорум
C# для начинающих
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.67/3: Рейтинг темы: голосов - 3, средняя оценка - 4.67
C# Junior
 Аватар для CharlyAB
3 / 2 / 1
Регистрация: 09.12.2018
Сообщений: 122

Тест: Какие программы вы напишите в гига-элементарными функциями?

16.04.2019, 17:59. Показов 710. Ответов 5

Студворк — интернет-сервис помощи студентам
А сколько элементарных скриптов вы сможете написать на абсолютно элементарным языком?
Да еще и на новом языке, который вы еще не знаете!
Да, понимаю, задача не из простых, но можете попробовать.
Задачка, если честно довольно интересная, сам пробовал.

-------
Построение сообщений:
1.Дата написания скрипта;
2.Описание скрипта;
3.Скрипт.
-------

А вот интерпретатор для скриптов:
-------
Interpreter.zip
-------
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
16.04.2019, 17:59
Ответы с готовыми решениями:

Уравнение с элементарными функциями
Мало примеров по интернету, плохо понимаю как решать и совсем не понятно как изобразить. Ln(z+i) = 0 Можно ли сделать так ? ...

Поставил 4 озу по 2 гига общий размер показывает 3.5 гига в винде
поставил 4 озу по 2 гига общий размер показывае 3.5 гига в винде винда стоит хр , в инструкции на материнку пишет что 8 гигов можно...

какую лучше поставить оперативку: : 4 гига 1333 или эти же 4 гига + 1 гиг 1032?
как лучше установить оперативку: 4 гига 1333 или эти же 4 гига + 1 гиг 1032

5
C# Junior
 Аватар для CharlyAB
3 / 2 / 1
Регистрация: 09.12.2018
Сообщений: 122
30.04.2019, 19:51  [ТС]
Новая версия Lamp Framework 1.2 вышла.
Скачать тут:
------
ABLampCMD.rar
------

ps. Если не понимаете как писать на языке, то пишите в приложение help!
0
490 / 286 / 129
Регистрация: 30.10.2018
Сообщений: 1,309
30.04.2019, 19:54
CharlyAB, качать подозрительные файлы от подозрительного типа с подозрительным предложениям? Чушь.
1
C# Junior
 Аватар для CharlyAB
3 / 2 / 1
Регистрация: 09.12.2018
Сообщений: 122
30.04.2019, 20:23  [ТС]
И вправду, тему надо закрывать, так как в ней нет никакого смысла.

Добавлено через 54 секунды
Извиняюсь, эта тема - стыд и позор.

Добавлено через 3 минуты
Вот, если надо полный код(половина)
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
//Copyright (c) 2019.
using System;
using System.IO;
using System.Collections.Generic;
 
namespace ABLampCMD
{
    static class CMD
    {
        public static string CurrStr; // Содержит комманду
        public static bool ComCorrect; // Содержит логическое значение, определяющее правильна ли введенная комманда
        public static string temp1; // Содержит первое временное значение, необходимое для парсинга команды
        public static string temp2; // Содержит второе временное значение, необходимое для парсинга команды
        public static string tempstr;
        public static int temp3;
        public static int temp4;
        public static string temp5;
        public static string temp6;
        public static int count;
        public static int count1;
 
        public static void Main(string[] args)
        {
            Console.WriteLine("================================================="); // CMD Info {
            Console.WriteLine("|    Command Prompt For Lamp. Copyright 2019.   |");
            Console.WriteLine("|           Use help for Lamp basics.           |");
            Console.WriteLine("================================================="); // CMD Info }
            Complete();
        }
        public static void Complete()
        {
            Dictionary<string, int> intvariables = new Dictionary<string, int>(1);
            Dictionary<string, string> strvariables = new Dictionary<string, string>(2);
            for (CurrStr = "exit"; ; )
            {
                ComCorrect = false;
                CurrStr = Console.ReadLine();
                if (CurrStr.Length > 3)
                {
                    if (CurrStr.Substring(1, 3).Equals("var")) // cоздает переменную
                    {
                        if (CurrStr.Substring(4, 3).Equals("int"))
                        {
                            intvariables.Add(CurrStr.Substring(8), 0);
                            ComCorrect = true;
                        }
                        if (CurrStr.Substring(4, 6).Equals("string"))
                        {
                            strvariables.Add(CurrStr.Substring(11), "");
                            ComCorrect = true;
                        }
                    }
                }
                if (CurrStr.Length > 8)
                {
                    if (CurrStr.Substring(0, 8).Equals("console.")) // объект AL.console
                    {
                        if (CurrStr.Substring(8, 7).Equals("writeln")) // метод AL.console.writeln(value:string / value:int / var:varvalue)
                        {
                            if (CurrStr.Substring(8, 7).Equals("writeln"))
                            {
                                if (CurrStr.Length < 19)
                                {
                                    Console.WriteLine("<exception>missing apostroth or other mandatory token");
                                }
                                else
                                {
                                    if (CurrStr.Substring(16, 1).Equals("\""))
                                    {
                                        if (CurrStr.EndsWith("\")"))
                                        {
                                            temp1 = CurrStr.Remove(CurrStr.Length - 2);
                                            temp2 = temp1.Remove(0, 17);
                                            Console.WriteLine(temp2);
                                            ComCorrect = true;
                                        }
                                    }
                                }
                            }
                        }
 
                        // console.write('lalala')
                        if (CurrStr.Substring(8, 5).Equals("write")) // method AL.console.write(value:string / value:bool / value:int / var:varvalue)
                        {
                            if (CurrStr.Substring(8, 7).Equals("writeln") == false)
                            {
                                if (CurrStr.Length < 17)
                                {
                                    Console.WriteLine("<exception>missing apostroth or other mandatory token");
                                }
                                else
                                {
                                    if (CurrStr.Substring(14, 1).Equals("\""))
                                    {
                                        if (CurrStr.EndsWith("\")"))
                                        {
                                            temp1 = CurrStr.Remove(CurrStr.Length - 2);
                                            temp2 = temp1.Remove(0, 15);
                                            Console.Write(temp2);
                                            ComCorrect = true;
                                        }
                                    }
                                }
                            }
                        }
                        // console.color = cyan
                        if (CurrStr.Substring(8, 5) == "color")
                        {
                            if (CurrStr.Substring(13, 3) == " = ")
                            {
                                if (CurrStr.Length == 21)
                                {
                                    if (CurrStr.Substring(16, 5) == "black")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Black;
                                    }
                                    if (CurrStr.Substring(16, 5) == "white")
                                    {
                                        Console.BackgroundColor = ConsoleColor.White;
                                    }
                                }
                                if (CurrStr.Length == 20)
                                {
                                    if (CurrStr.Substring(16, 4) == "blue")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Blue;
                                    }
                                    if (CurrStr.Substring(16, 4) == "cyan")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Cyan;
                                    }
                                }
                                if (CurrStr.Length == 24)
                                {
                                    if (CurrStr.Substring(16, 8) == "darkblue")
                                    {
                                        Console.BackgroundColor = ConsoleColor.DarkBlue;
                                    }
                                    if (CurrStr.Substring(16, 8) == "darkcyan")
                                    {
                                        Console.BackgroundColor = ConsoleColor.DarkCyan;
                                    }
                                    if (CurrStr.Substring(16, 8) == "darkgray")
                                    {
                                        Console.BackgroundColor = ConsoleColor.DarkGray;
                                    }
                                }
                                if (CurrStr.Length == 25)
                                {
                                    if (CurrStr.Substring(16, 9) == "darkgreen")
                                    {
                                        Console.BackgroundColor = ConsoleColor.DarkGreen;
                                    }
                                }
                                if (CurrStr.Length == 27)
                                {
                                    if (CurrStr.Substring(16, 11) == "darkmagenta")
                                    {
                                        Console.BackgroundColor = ConsoleColor.DarkMagenta;
                                    }
                                }
                                if (CurrStr.Length == 23)
                                {
                                    if (CurrStr.Substring(16, 7) == "darkred")
                                    {
                                        Console.BackgroundColor = ConsoleColor.DarkRed;
                                    }
                                }
                                if (CurrStr.Length == 26)
                                {
                                    if (CurrStr.Substring(16, 10) == "darkyellow")
                                    {
                                        Console.BackgroundColor = ConsoleColor.DarkYellow;
                                    }
                                }
                                if (CurrStr.Length == 20)
                                {
                                    if (CurrStr.Substring(16, 4) == "gray")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Gray;
                                    }
                                }
                                if (CurrStr.Length == 21)
                                {
                                    if (CurrStr.Substring(16, 5) == "green")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Green;
                                    }
                                }
                                if (CurrStr.Length == 23)
                                {
                                    if (CurrStr.Substring(16, 7) == "magenta")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Magenta;
                                    }
                                }
                                if (CurrStr.Length == 19)
                                {
                                    if (CurrStr.Substring(16, 3) == "red")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Red;
                                    }
                                }
                                if (CurrStr.Length == 22)
                                {
                                    if (CurrStr.Substring(16, 6) == "yellow")
                                    {
                                        Console.BackgroundColor = ConsoleColor.Yellow;
                                    }
                                }
                            }
                            else
                            {
                                Console.WriteLine("<exception>missing equals_symbol.");
                            }
                        }
0
C# Junior
 Аватар для CharlyAB
3 / 2 / 1
Регистрация: 09.12.2018
Сообщений: 122
30.04.2019, 20:29  [ТС]
Вторая половина:
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
if (CurrStr.Length > 22)
                        {
                            if (CurrStr.Substring(8, 9) == "textcolor")
                            {
                                if (CurrStr.Substring(17, 3) == " = ")
                                {
                                    if (CurrStr.Length == 25)
                                    {
                                        if (CurrStr.Substring(20, 5) == "black")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Black;
                                            ComCorrect = true;
                                        }
                                        if (CurrStr.Substring(20, 5) == "white")
                                        {
                                            Console.ForegroundColor = ConsoleColor.White;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 24)
                                    {
                                        if (CurrStr.Substring(20, 4) == "blue")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Blue;
                                            ComCorrect = true;
                                        }
                                        if (CurrStr.Substring(20, 4) == "cyan")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Cyan;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 28)
                                    {
                                        if (CurrStr.Substring(20, 8) == "darkblue")
                                        {
                                            Console.ForegroundColor = ConsoleColor.DarkBlue;
                                            ComCorrect = true;
                                        }
                                        if (CurrStr.Substring(20, 8) == "darkcyan")
                                        {
                                            Console.ForegroundColor = ConsoleColor.DarkCyan;
                                            ComCorrect = true;
                                        }
                                        if (CurrStr.Substring(20, 8) == "darkgray")
                                        {
                                            Console.ForegroundColor = ConsoleColor.DarkGray;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 29)
                                    {
                                        if (CurrStr.Substring(20, 9) == "darkgreen")
                                        {
                                            Console.ForegroundColor = ConsoleColor.DarkGreen;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 31)
                                    {
                                        if (CurrStr.Substring(20, 11) == "darkmagenta")
                                        {
                                            Console.ForegroundColor = ConsoleColor.DarkMagenta;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 27)
                                    {
                                        if (CurrStr.Substring(20, 7) == "darkred")
                                        {
                                            Console.ForegroundColor = ConsoleColor.DarkRed;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 30)
                                    {
                                        if (CurrStr.Substring(20, 10) == "darkyellow")
                                        {
                                            Console.ForegroundColor = ConsoleColor.DarkYellow;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 24)
                                    {
                                        if (CurrStr.Substring(20, 4) == "gray")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Gray;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 25)
                                    {
                                        if (CurrStr.Substring(20, 5) == "green")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Green;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 27)
                                    {
                                        if (CurrStr.Substring(20, 7) == "magenta")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Magenta;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 23)
                                    {
                                        if (CurrStr.Substring(20, 3) == "red")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Red;
                                            ComCorrect = true;
                                        }
                                    }
                                    if (CurrStr.Length == 26)
                                    {
                                        if (CurrStr.Substring(20, 6) == "yellow")
                                        {
                                            Console.ForegroundColor = ConsoleColor.Yellow;
                                            ComCorrect = true;
                                        }
                                        else
                                        {
                                            if (ComCorrect == false)
                                            {
                                                Console.WriteLine("<exception>this color is not supporting or entered color is not exists.");
                                            }
                                        }
                                    }
                                    else
                                    {
                                        if (ComCorrect == false)
                                        {
                                            Console.WriteLine("<exception>missing equals_symbol.");
                                            
                                        }
                                    }
                                }
                            }
                        }
                    }
                    // console.title = 'lalka'
                    if (CurrStr.Substring(8, 5) == "title")
                    {
                        if (CurrStr.EndsWith("\""))
                        {
                            if (CurrStr.Substring(13, 3) == " = ")
                            {
                                if (CurrStr.Substring(16, 1) == "\"")
                                {
                                    temp1 = CurrStr.Remove(0, 17);
                                    temp2 = temp1.Remove(temp1.Length - 1);
                                    Console.Title = temp2;
                                }
                                else
                                {
                                    Console.WriteLine("<exception>missing apostroth.");
                                }
                            }
                            else
                            {
                                Console.WriteLine("<exception>missing equals_symbol.");
                            }
                        }
                        else
                        {
                            Console.WriteLine("<exception>missing apostroth.");
                        }
                    }
                }
                            if (CurrStr.Length == 4)
                            {
                                if (CurrStr.Substring(0, 4) == "help")
                                {
                                    Console.WriteLine("=======================================help======================================");
                                    Console.WriteLine("|                                    Commands:                                  |");
                                    Console.WriteLine("|cls - clears the console.                                                      |");
                                    Console.WriteLine("|console.writeln(text:string) - writes the line to console with newline symbol. |");
                                    Console.WriteLine("|console.write(text:string) - writes the line to console without newline symbol.|");
                                    Console.WriteLine("|console.color = color:consolecolor - changes the backcolor of console text.    |");
                                    Console.WriteLine("|console.textcolor = color:consolecolor - changes color of console text.        |");
                                    Console.WriteLine("|startscript(string:path) - starts the script with entered path.[can fatal err.]|");
                                    Console.WriteLine("|filecreate(path:string) - creates the file with entered path[can fatal error]. |");
                                    Console.WriteLine("|beep() - plays the sound \"beep\".                                             |");
                                    Console.WriteLine("|                                     Basics:                                   |");
                                    Console.WriteLine("|\" - start and end of string symbol.                                           |");
                                    Console.WriteLine("|                                     Changes:                                  |");
                                    Console.WriteLine("|string symbol; startscript(); beep().                                          |");
                                    Console.WriteLine("=================================================================================");
                                }
                            }
                            if (CurrStr.Length == 3)
                            {
                                if (CurrStr.Substring(0, 3) == "cls")
                                {
                                    Console.Clear();
                                }
                            }
                            if (CurrStr.Length > 5)
                            {
                                // primer: chval str val = ''
                                if (CurrStr.Substring(1, 5).Equals("chval"))
                                {
                                    if (CurrStr.Substring(7, 3).Equals("str"))
                                    {
                                        if (CurrStr.Length < 14)
                                        {
                                            Console.WriteLine("<exception>missing apostroth or other mandatory token");
                                        }
                                        else
                                        {
                                            temp1 = CurrStr.Remove(CurrStr.Length - 1);
                                            temp2 = temp1.Remove(17, 1);
                                            strvariables[CurrStr.Substring(10, 3)] = temp2;
                                            Console.WriteLine("<chval>now " + CurrStr.Substring(10, 3) + " =" + strvariables.TryGetValue(CurrStr.Substring(10, 3), out temp1));
                                        }
                                    }
                                }
                            }
                            // startsrcipt('C:\gavno.alb')
                            if (CurrStr.Length > 11)
                            {
                                if (CurrStr.Substring(0, 11).Equals("startscript"))
                                {
                                    if (CurrStr.Substring(11, 2).Equals("(\""))
                                    {
                                        if (CurrStr.EndsWith("\")"))
                                        {
                                        temp1 = CurrStr.Remove(CurrStr.Length - 2);
                                        temp2 = temp1.Remove(0, 13);
                                        BatchCMD.Start();
                                        }
                                    }
                                }
                            }
Добавлено через 5 минут
Третья половина:
Упс! Дурацкое ограничение...
Ладно, потом напишу...
0
490 / 286 / 129
Регистрация: 30.10.2018
Сообщений: 1,309
30.04.2019, 20:56
Цитата Сообщение от CharlyAB Посмотреть сообщение
Третья половина:
Половин есть три? Ты изменил мое представления об математике.
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
30.04.2019, 20:56
Помогаю со студенческими работами здесь

Что будет работать быстрее, одна планка на четыре гига или две по два гига?
Люди скажите что будет работать быстрее, одна планка на четыре гига или две по два гига? и почему?

Какие из приведенных отношений являются функциями
Пусть заданы отношения: а)y^2=x^2+4; б)y^3=x^3+4; в)y=5; г)y=\sqrt{{x}^{2}-2} Какие из приведенных отношений являются функциями, если х и...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
6
Ответ Создать тему
Новые блоги и статьи
Сумматор с применением элементов трёх состояний.
Hrethgir 26.03.2026
Тут. https:/ / fips. ru/ EGD/ ab3c85c8-836d-4866-871b-c2f0c5d77fbc Первый документ красиво выглядит, но без схемы. Это конечно не даёт никаких плюсов автору, но тем не менее. . . всё может быть. . .
Автозаполнение реквизитов при создании документа
Maks 26.03.2026
Код из решения ниже размещается в модуле объекта документа, в процедуре "ПриСозданииНаСервере". Алгоритм проверки заполнения реализован для исключения перезаписи значения реквизита, которое может. . .
Команды "Заполнить" и "Очистить" на форме документа
Maks 26.03.2026
1. Команда формы "ЗаполнитьЗапчасти". На примере нетипового документа разработанного в конфигурации КА2. В качестве источника данных указан регистр накопления, в который записываются данные о. . .
Кому нужен AOT?
DevAlt 26.03.2026
Решил сделать простой ланчер Написал заготовку: dotnet new console --aot -o UrlHandler var items = args. Split(":"); var tag = items; var id = items; var executable = args;. . .
Отправка уведомления на почту при изменении наименования справочника
Maks 24.03.2026
Программная отправка письма электронной почты на примере изменения наименования типового справочника "Склады" в конфигурации БП3. Перед реализацией необходимо выполнить настройку системной учетной. . .
модель ЗдравоСохранения 5. Меньше увольнений- больше дохода!
anaschu 24.03.2026
Теперь система здравосохранения уменьшает количество увольнений. 9TO2GP2bpX4 a42b81fb172ffc12ca589c7898261ccb/ https:/ / rutube. ru/ video/ a42b81fb172ffc12ca589c7898261ccb/ Слева синяя линия -. . .
Midnight Chicago Blues
kumehtar 24.03.2026
Такой Midnight Chicago Blues, знаешь?. . Когда вечерние улицы становятся ночными, а ты не можешь уснуть. Ты идёшь в любимый старый бар, и бармен наливает тебе виски. Ты смотришь на пролетающие. . .
SDL3 для Desktop (MinGW): Вывод текста со шрифтом TTF с помощью библиотеки SDL3_ttf на Си и C++
8Observer8 24.03.2026
Содержание блога Финальные проекты на Си и на C++: finish-text-sdl3-c. zip finish-text-sdl3-cpp. zip
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru