Форум программистов, компьютерный форум, киберфорум
Pascal (Паскаль)
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.64/11: Рейтинг темы: голосов - 11, средняя оценка - 4.64
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9

Перекодировать Метки=>Процедуры

17.12.2010, 23:50. Показов 2056. Ответов 15
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Помогите пожалуйста с курсачом.Прога работает и все сделано, но дело в том что я писал через метки, а препод не принимает.Прошу помочь перевести мою прогу в процедуры, а то у самого не получается( не работает(

Pascal
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
program X_and_O;
uses crt;
var f : array[0..2,0..2] of integer; {pole}
    game,pcalc,ccalc : word;
    wv : integer;
    p1,c1,xcur,ycur,sv,sv2,sv3,int,m : byte;
    com,p2,c2 : char;
    move : boolean;
label start,plr_play,com_play,cp2,newgame,ng2,win,endgame;
begin
 int:=1;
 p1:=10;
 p2:='X';
 c1:=14;
 c2:='O';
 randomize;
 textbackground(2);
 goto newgame;
 
 {==================New Game==================================}
start:
 clrscr;
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 textbackground(2);
 clrscr;
 textcolor(1);
 gotoxy(3,4);
 write('Player:    Computer(');
 case int of
  0 : write(' Hard');
  1 : write(' Norm');
  2 : write(' Easy');
 end;
 write('): 0');
 gotoxy(3,5);
 write('Game: 1');
 textbackground(7);
 textcolor(8);
 gotoxy(1,1);
 clreol;
 write(#24#25#26#27,' >> cursor movement    space >> go    1 >> New game    2 >> Exit      ');
 textbackground(2);
 if move then goto plr_play else goto com_play;
 
{=======================Player's turn==================================}
plr_play:
 if (game=100) or (game=200) or (game=300) then goto endgame;
 textcolor(1);
 gotoxy(10,4);
 write(pcalc);
 gotoxy(24,4);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 write('): ');
 write(ccalc);
 gotoxy(9,5);
 case game of
  0..100 : wv:=100-game;
  101..200 : wv:=200-game;
  else wv:=300-game;
 end;
 write(game,'(Remained until the end ',wv,' games)');
 gotoxy(35,10);
 write('ЪДДДВДДДВДДДї');
 gotoxy(35,11);
 write('і   і   і   і');
 gotoxy(35,12);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,13);
 write('і   і   і   і');
 gotoxy(35,14);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,15);
 write('і   і   і   і');
 gotoxy(35,16);
 write('АДДДБДДДБДДДЩ');
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];  {trunc ysekaet do celogo chisla}
  if sv2<>0 then
               begin
                     gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
                     if sv2=1 then
                                 begin textcolor(p1);
                                       write(p2);
                                 end
                               else
                                  begin textcolor(c1);
                                        write(c2);
                                  end;
               end;
  sv:=sv+1;
  until sv=9;
  textcolor(5);
  gotoxy(xcur*4+38,ycur*2+11);
  write('');
  sv:=0;
  repeat
    wv:=f[sv,0]+f[sv,1]+f[sv,2];
    if (wv=3) or (wv=-3)
       then goto win;
       wv:=f[0,sv]+f[1,sv]+f[2,sv];
    if (wv=3) or (wv=-3)
       then goto win;
       sv:=sv+1;
  until sv=3;
  wv:=f[0,0]+f[1,1]+f[2,2];
  if (wv=3) or (wv=-3)
     then goto win;
  wv:=f[2,0]+f[1,1]+f[0,2];
  if (wv=3) or (wv=-3)
     then goto win;
  if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
     and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
     and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
 then
    begin
        f[0,0]:=0;
        f[0,1]:=0;
        f[0,2]:=0;
        f[1,0]:=0;
        f[1,1]:=0;
        f[1,2]:=0;
        f[2,0]:=0;
        f[2,1]:=0;
        f[2,2]:=0;
        gotoxy(8,8);
        textcolor(14);
        write('Draw.       ');
        game:=game+1;
        if move
           then move:=false
           else move:=true;
        readkey;
        gotoxy(8,8);
        write('             ');
        if move
           then goto plr_play
           else goto com_play;
    end;
 com:=readkey;
 case com of
  '1' : goto newgame;
  '2' : exit;
  ' ' : if f[xcur,ycur]=0
           then begin f[xcur,ycur]:=1;
                      goto com_play;
                end;
  #27 : exit;
  #0 :
  begin
   com:=readkey;
   case com of
    #72 : if ycur>0
             then ycur:=ycur-1;
    #75 : if xcur>0
             then xcur:=xcur-1;
    #77 : if xcur<2
             then xcur:=xcur+1;
    #80 : if ycur<2
             then ycur:=ycur+1;
   end;
  end;
 end;
 goto plr_play;
 
{=====================Computer's turn=============================}
com_play:
 if (game=100) or (game=200) or (game=300)
    then goto endgame;
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];
  if sv2<>0
  then
     begin
          gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
          if sv2=1
             then
                begin textcolor(p1);
                      write(p2);
                end
             else
                begin textcolor(c1);
                      write(c2);
                end;
     end;
  sv:=sv+1;
 until sv=9;
 sv:=0;
 repeat
  wv:=f[sv,0]+f[sv,1]+f[sv,2];
  if (wv=3) or (wv=-3)
     then goto win;
  wv:=f[0,sv]+f[1,sv]+f[2,sv];
  if (wv=3) or (wv=-3)
     then goto win;
  sv:=sv+1;
 until sv=3;
 wv:=f[0,0]+f[1,1]+f[2,2];
 if (wv=3) or (wv=-3)
    then goto win;
 wv:=f[2,0]+f[1,1]+f[0,2];
 if (wv=3) or (wv=-3)
    then goto win;
 if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
    and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
    and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
    then goto plr_play;
 if int=2
    then goto cp2;
 sv:=random(int+2);
 if (sv=2) and (int<>0)
    then goto cp2;
 if (f[1,1]=0) and (random(3)<>2)
    then
       begin f[1,1]:=-1;
       goto plr_play;
       end;
 sv:=0;
 repeat
  if (f[sv,0]+f[sv,1]+f[sv,2]=2) or (f[sv,0]+f[sv,1]+f[sv,2]=-2)
     then
        begin
             sv2:=0;
             repeat
             if f[sv,sv2]=0
                then f[sv,sv2]:=-1;
                     sv2:=sv2+1;
             until sv2=3;
             goto plr_play;
        end;
  if (f[0,sv]+f[1,sv]+f[2,sv]=2) or (f[0,sv]+f[1,sv]+f[2,sv]=-2)
     then
        begin
             sv2:=0;
             repeat
                   if f[sv2,sv]=0
                      then f[sv2,sv]:=-1;
                           sv2:=sv2+1;
             until sv2=3;
             goto plr_play;
        end;
  sv:=sv+1;
 until sv=3;
 if (f[0,0]+f[1,1]+f[2,2]=2) or (f[0,0]+f[1,1]+f[2,2]=-2)
    then
       begin
            if f[0,0]=0
               then f[0,0]:=-1;
            if f[1,1]=0
               then f[1,1]:=-1;
            if f[2,2]=0
               then f[2,2]:=-1;
            goto plr_play;
       end;
 if (f[2,0]+f[1,1]+f[0,2]=2) or (f[2,0]+f[1,1]+f[0,2]=-2)
    then
       begin
           if f[2,0]=0
              then f[2,0]:=-1;
           if f[1,1]=0
              then f[1,1]:=-1;
           if f[0,2]=0
              then f[0,2]:=-1;
           goto plr_play;
       end;
cp2:
 repeat
  sv:=random(10);
  if f[trunc(sv/3),sv mod 3]=0
     then
         begin f[trunc(sv/3),sv mod 3]:=-1;
               goto plr_play;
         end;
 until sv=11;
 goto plr_play;
 
{============================Game Settings==============================}
newgame:
 clrscr;
 textcolor(1);
 write('   Setting up a new game');
 gotoxy(4,7);
 write('1 >> Computer intelligence: ');
 gotoxy(4,8);
 write('2 >> You"ll play');
 gotoxy(4,11);
 write('5 >> First move');
 gotoxy(4,14);
 textcolor(1);
 write('Space >> start game    esc >> exit');
ng2:
 textcolor(14);
 gotoxy(31,7);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 gotoxy(26,8);
 if p2='X'
    then write('X')
    else write('O');
 gotoxy(20,11);
 case m of
  0 : write('Random  ');
  1 : write('Your    ');
  2 : write('Copmuter');
 end;
 gotoxy(4,9);
 textcolor(p1);
 write('3 >> Your color');
 gotoxy(4,10);
 textcolor(c1);
 write('4 >> Color computer');
 com:=readkey;
 case com of
  '1' : if int>0
           then dec(int)
           else int:=2;
  '2' : if p2='X'
           then
              begin p2:='O';
                    c2:='X';
              end
           else
              begin p2:='X';
                    c2:='O';
              end;
  '3' : begin if p1<15
                 then p1:=p1+1
                 else p1:=0;
              if p1=2
                 then p1:=3;
        end;
  '4' : begin if c1<15
                 then c1:=c1+1
                 else c1:=0;
              if c1=2
                 then c1:=3;
        end;
  '5' : if m<2
           then m:=m+1
           else m:=0;
  #27 : exit;
  ' ' :
  begin
   sv:=random(2);
   case m of
    0 : if sv<1
           then move:=true
           else move:=false;
    1 : move:=true;
    2 : move:=false;
   end;
   game:=1;
   pcalc:=0;
   ccalc:=0;
   goto start;
  end;
 end;
 goto ng2;
 
{=======================Win===========================================}
win:
 gotoxy(8,8);
 clreol;
 if wv=3
    then
       begin pcalc:=pcalc+1;
             textcolor(4);
             write('You win!');
       end
    else
        begin textcolor(8);
              write('You lost.');
              ccalc:=ccalc+1;
        end;
 game:=game+1;
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 readkey;
 gotoxy(1,8);
 clreol;
 if move
    then move:=false
    else move:=true;
 if move
    then goto plr_play
    else goto com_play;
 
{=============================Game over===============================}
endgame:
 delay(6400);
 while keypressed do readkey;
 clrscr;
 textcolor(7);
 gotoxy(35,3);
 if game<300
    then
        write('Tournament is over.')
        else write('Geme over.');
 textcolor(5);
 if pcalc>ccalc
    then
        begin gotoxy(15,6);
              write('You won with a score of ',pcalc,':',ccalc,' Congratulations!');
        end;
 if pcalc=ccalc
    then
        begin gotoxy(36,6);
              write('Drow. ',pcalc,':',ccalc);
        end;
 if pcalc<ccalc
    then
        begin gotoxy(15,6);
              write('Sorry,you lost by a score ',pcalc,':',ccalc);
        end;
 window(5,10,80,25);
 textcolor(14);
 write('Computer intilekt: ');
 case int of
  0 : writeln('Hard.');
  1 : writeln('Norm.');
  2 : writeln('Easy.');
 end;
 writeln;
 writeln('   Assessment of your abilities :');
 writeln('Winnings: ',round(pcalc/game*100),'%');
 writeln('Losses: ',round(ccalc/game*100),'%');
 writeln('Game to a draw: ',100-round(pcalc/game*100)-round(ccalc/game*100),'%');
 writeln;
 writeln('Computer experience:');
 textcolor(4);
 wv:=round(pcalc/game*100);
 case int of
  1 : dec(wv,-5);
  2 : dec(wv,-10);
 end;
 case wv of
  -10..-6 : write('"Well, and the brake!"');
  -5..0 : write('"do not know how to play."');
  1..10 : write('"Surely someone is worse?"');
  11..20 : write('"You need a good workout!"');
  21..30 : write('"Sucks play."');
  31..40 : write('"Say the least not very."');
  41..50 : write('"Not bad, not bad, but can be much better."');
  51..60 : write('"Good result. Though of course it is possible and better...');
  61..70 : write('"Play good!"');
  71..80 : write('"Cool game! You how many megabytes of memory?"');
  81..90 : write('"Good result! Oh, I would so..."');
  91..97 : write('"Great game!!!"');
  98..100 : begin textcolor(6);
                  write('"Are you a supercomputer?!"');
            end;
 end;
 writeln;
 writeln;
 writeln;
 textcolor(1);
 if game<300
    then write('Space >> continue the game    esc >> Exit')
    else write('Press any key to exit.');
 window(1,1,80,25);
 if game<300
    then
       repeat
           com:=readkey;
           case com of
           ' ' : begin inc(game);
                    if move
                       then move:=false
                       else move:=true;
                 goto start;
                 end;
           #27 : exit;
           end;
       until com=#27
    else
 begin
  readkey;
  exit;
 end;
 window(1,1,80,25);
 goto start;
end.
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
17.12.2010, 23:50
Ответы с готовыми решениями:

Перекодировать текстовый файл, заменив буквы русского алфавита на соответствующие буквы латинского
Здравствуйте! Оформите, пожалуйста, программу через процедуры и функции. Перекодировать данный ...

Использование имени процедуры в качестве параметра другой процедуры
Предложите, пожалуйста, пример решения след. задачи с использованием вышеуказанного условия: ...

Процедуры и функции. Процедуры с числовыми параметрами
Описать процедуру RectPS (x1, y1, x2, y2, P, S), вычисляющую периметр P и площадь S прямоугольника...

15
Эксперт по компьютерным сетямЭксперт Pascal/Delphi
 Аватар для TAVulator
4191 / 1292 / 237
Регистрация: 27.07.2009
Сообщений: 3,962
17.12.2010, 23:53
дык а чего не получается?
просто вместо
start: пиши Procedure start;
и вместо goto start; пиши start;
1
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
18.12.2010, 10:21  [ТС]
да руки наверное крывые и после моего преобразования нифига не работает(
0
Эксперт по компьютерным сетямЭксперт Pascal/Delphi
 Аватар для TAVulator
4191 / 1292 / 237
Регистрация: 27.07.2009
Сообщений: 3,962
18.12.2010, 12:35
DevilSun, покажи как пытался преобразовать. посмотрим.
1
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
18.12.2010, 19:22  [ТС]
если так заменять то получается такое и все равно не работает....надо как то грамотно в конце написать что за чем идет наверное

Pascal
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
program X_and_O;
uses crt;
type   pole = array[0..2,0..2] of integer;
var f : pole;
    game,pcalc,ccalc : word;
    wv : integer;
    p1,c1,xcur,ycur,sv,sv2,sv3,int,m : byte;
    com,p2,c2 : char;
    move : boolean;
 
 {==================New Game==================================}
procedure start(f:pole);
 {clrscr;}
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 textbackground(2);
 clrscr;
 textcolor(1);
 gotoxy(3,4);
 write('Player:    Computer(');
 case int of
  0 : write(' Hard');
  1 : write(' Norm');
  2 : write(' Easy');
 end;
 write('): 0');
 gotoxy(3,5);
 write('Game: 1');
 textbackground(7);
 textcolor(8);
 gotoxy(1,1);
 clreol;
 write(#24#25#26#27,' >> cursor movement    space >> go    1 >> New game    2 >> Exit      ');
 textbackground(2);
 if move
    then plr_play
    else com_play;
end;
{=======================Player's turn==================================}
procedure plr_play;
 if (game=100) or (game=200) or (game=300) then endgame;
 textcolor(1);
 gotoxy(10,4);
 write(pcalc);
 gotoxy(24,4);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 write('): ');
 write(ccalc);
 gotoxy(9,5);
 case game of
  0..100 : wv:=100-game;
  101..200 : wv:=200-game;
  else wv:=300-game;
 end;
 write(game,'(Remained until the end ',wv,' games)');
 gotoxy(35,10);
 write('ЪДДДВДДДВДДДї');
 gotoxy(35,11);
 write('і   і   і   і');
 gotoxy(35,12);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,13);
 write('і   і   і   і');
 gotoxy(35,14);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,15);
 write('і   і   і   і');
 gotoxy(35,16);
 write('АДДДБДДДБДДДЩ');
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];  {trunc ysekaet do celogo chisla}
  if sv2<>0 then
               begin
                     gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
                     if sv2=1 then
                                 begin textcolor(p1);
                                       write(p2);
                                 end
                               else
                                  begin textcolor(c1);
                                        write(c2);
                                  end;
               end;
  sv:=sv+1;
  until sv=9;
  textcolor(5);
  gotoxy(xcur*4+38,ycur*2+11);
  write('');
  sv:=0;
  repeat
    wv:=f[sv,0]+f[sv,1]+f[sv,2];
    if (wv=3) or (wv=-3)
       then win;
       wv:=f[0,sv]+f[1,sv]+f[2,sv];
    if (wv=3) or (wv=-3)
       then win;
       sv:=sv+1;
  until sv=3;
  wv:=f[0,0]+f[1,1]+f[2,2];
  if (wv=3) or (wv=-3)
     then win;
  wv:=f[2,0]+f[1,1]+f[0,2];
  if (wv=3) or (wv=-3)
     then win;
  if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
     and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
     and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
 then
    begin
        f[0,0]:=0;
        f[0,1]:=0;
        f[0,2]:=0;
        f[1,0]:=0;
        f[1,1]:=0;
        f[1,2]:=0;
        f[2,0]:=0;
        f[2,1]:=0;
        f[2,2]:=0;
        gotoxy(8,8);
        textcolor(14);
        write('Draw.       ');
        game:=game+1;
        if move
           then move:=false
           else move:=true;
        readkey;
        gotoxy(8,8);
        write('             ');
        if move
           then plr_play
           else com_play;
    end;
 com:=readkey;
 case com of
  '1' : newgame;
  '2' : exit;
  ' ' : if f[xcur,ycur]=0
           then begin f[xcur,ycur]:=1;
                      com_play;
                end;
  #27 : exit;
  #0 :
  begin
   com:=readkey;
   case com of
    #72 : if ycur>0
             then ycur:=ycur-1;
    #75 : if xcur>0
             then xcur:=xcur-1;
    #77 : if xcur<2
             then xcur:=xcur+1;
    #80 : if ycur<2
             then ycur:=ycur+1;
   end;
  end;
 end;
 plr_play;
end;
 
{=====================Computer's turn=============================}
procedure com_play;
 if (game=100) or (game=200) or (game=300)
    then endgame;
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];
  if sv2<>0
  then
     begin
          gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
          if sv2=1
             then
                begin textcolor(p1);
                      write(p2);
                end
             else
                begin textcolor(c1);
                      write(c2);
                end;
     end;
  sv:=sv+1;
 until sv=9;
 sv:=0;
 repeat
  wv:=f[sv,0]+f[sv,1]+f[sv,2];
  if (wv=3) or (wv=-3)
     then win;
  wv:=f[0,sv]+f[1,sv]+f[2,sv];
  if (wv=3) or (wv=-3)
     then win;
  sv:=sv+1;
 until sv=3;
 wv:=f[0,0]+f[1,1]+f[2,2];
 if (wv=3) or (wv=-3)
    then win;
 wv:=f[2,0]+f[1,1]+f[0,2];
 if (wv=3) or (wv=-3)
    then win;
 if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
    and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
    and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
    then plr_play;
 if int=2
    then cp2;
 sv:=random(int+2);
 if (sv=2) and (int<>0)
    then cp2;
 if (f[1,1]=0) and (random(3)<>2)
    then
       begin f[1,1]:=-1;
       plr_play;
       end;
 sv:=0;
 repeat
  if (f[sv,0]+f[sv,1]+f[sv,2]=2) or (f[sv,0]+f[sv,1]+f[sv,2]=-2)
     then
        begin
             sv2:=0;
             repeat
             if f[sv,sv2]=0
                then f[sv,sv2]:=-1;
                     sv2:=sv2+1;
             until sv2=3;
             plr_play;
        end;
  if (f[0,sv]+f[1,sv]+f[2,sv]=2) or (f[0,sv]+f[1,sv]+f[2,sv]=-2)
     then
        begin
             sv2:=0;
             repeat
                   if f[sv2,sv]=0
                      then f[sv2,sv]:=-1;
                           sv2:=sv2+1;
             until sv2=3;
             plr_play;
        end;
  sv:=sv+1;
 until sv=3;
 if (f[0,0]+f[1,1]+f[2,2]=2) or (f[0,0]+f[1,1]+f[2,2]=-2)
    then
       begin
            if f[0,0]=0
               then f[0,0]:=-1;
            if f[1,1]=0
               then f[1,1]:=-1;
            if f[2,2]=0
               then f[2,2]:=-1;
            plr_play;
       end;
 if (f[2,0]+f[1,1]+f[0,2]=2) or (f[2,0]+f[1,1]+f[0,2]=-2)
    then
       begin
           if f[2,0]=0
              then f[2,0]:=-1;
           if f[1,1]=0
              then f[1,1]:=-1;
           if f[0,2]=0
              then f[0,2]:=-1;
           plr_play;
       end;
end;
procedure cp2;
 repeat
  sv:=random(10);
  if f[trunc(sv/3),sv mod 3]=0
     then
         begin f[trunc(sv/3),sv mod 3]:=-1;
               plr_play;
         end;
 until sv=11;
 plr_play;
end;
{============================Game Settings==============================}
procedure newgame;
 clrscr;
 textcolor(1);
 write('   Setting up a new game');
 gotoxy(4,7);
 write('1 >> Computer intelligence: ');
 gotoxy(4,8);
 write('2 >> You"ll play');
 gotoxy(4,11);
 write('5 >> First move');
 gotoxy(4,14);
 textcolor(1);
 write('Space >> start game    esc >> exit');
end;
 
procedure ng2;
 textcolor(14);
 gotoxy(31,7);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 gotoxy(26,8);
 if p2='X'
    then write('X')
    else write('O');
 gotoxy(20,11);
 case m of
  0 : write('Random  ');
  1 : write('Your    ');
  2 : write('Copmuter');
 end;
 gotoxy(4,9);
 textcolor(p1);
 write('3 >> Your color');
 gotoxy(4,10);
 textcolor(c1);
 write('4 >> Color computer');
 com:=readkey;
 case com of
  '1' : if int>0
           then dec(int)
           else int:=2;
  '2' : if p2='X'
           then
              begin p2:='O';
                    c2:='X';
              end
           else
              begin p2:='X';
                    c2:='O';
              end;
  '3' : begin if p1<15
                 then p1:=p1+1
                 else p1:=0;
              if p1=2
                 then p1:=3;
        end;
  '4' : begin if c1<15
                 then c1:=c1+1
                 else c1:=0;
              if c1=2
                 then c1:=3;
        end;
  '5' : if m<2
           then m:=m+1
           else m:=0;
  #27 : exit;
  ' ' :
  begin
   sv:=random(2);
   case m of
    0 : if sv<1
           then move:=true
           else move:=false;
    1 : move:=true;
    2 : move:=false;
   end;
   game:=1;
   pcalc:=0;
   ccalc:=0;
   goto start;
  end;
 end;
 ng2;
end;
 
{=======================Win===========================================}
procedure win;
 gotoxy(8,8);
 clreol;
 if wv=3
    then
       begin pcalc:=pcalc+1;
             textcolor(4);
             write('You win!');
       end
    else
        begin textcolor(8);
              write('You lost.');
              ccalc:=ccalc+1;
        end;
 game:=game+1;
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 readkey;
 gotoxy(1,8);
 clreol;
 if move
    then move:=false
    else move:=true;
 if move
    then plr_play
    else com_play;
end;
{=============================Game over===============================}
procedure endgame;
 delay(6400);
 while keypressed do readkey;
 clrscr;
 textcolor(7);
 gotoxy(35,3);
 if game<300
    then
        write('Tournament is over.')
        else write('Geme over.');
 textcolor(5);
 if pcalc>ccalc
    then
        begin gotoxy(15,6);
              write('You won with a score of ',pcalc,':',ccalc,' Congratulations!');
        end;
 if pcalc=ccalc
    then
        begin gotoxy(36,6);
              write('Drow. ',pcalc,':',ccalc);
        end;
 if pcalc<ccalc
    then
        begin gotoxy(15,6);
              write('Sorry,you lost by a score ',pcalc,':',ccalc);
        end;
 window(5,10,80,25);
 textcolor(14);
 write('Computer intilekt: ');
 case int of
  0 : writeln('Hard.');
  1 : writeln('Norm.');
  2 : writeln('Easy.');
 end;
 writeln;
 writeln('   Assessment of your abilities :');
 writeln('Winnings: ',round(pcalc/game*100),'%');
 writeln('Losses: ',round(ccalc/game*100),'%');
 writeln('Game to a draw: ',100-round(pcalc/game*100)-round(ccalc/game*100),'%');
 writeln;
 writeln('Computer experience:');
 textcolor(4);
 wv:=round(pcalc/game*100);
 case int of
  1 : dec(wv,-5);
  2 : dec(wv,-10);
 end;
 case wv of
  -10..-6 : write('"Well, and the brake!"');
  -5..0 : write('"do not know how to play."');
  1..10 : write('"Surely someone is worse?"');
  11..20 : write('"You need a good workout!"');
  21..30 : write('"Sucks play."');
  31..40 : write('"Say the least not very."');
  41..50 : write('"Not bad, not bad, but can be much better."');
  51..60 : write('"Good result. Though of course it is possible and better...');
  61..70 : write('"Play good!"');
  71..80 : write('"Cool game! You how many megabytes of memory?"');
  81..90 : write('"Good result! Oh, I would so..."');
  91..97 : write('"Great game!!!"');
  98..100 : begin textcolor(6);
                  write('"Are you a supercomputer?!"');
            end;
 end;
 writeln;
 writeln;
 writeln;
 textcolor(1);
 if game<300
    then write('Space >> continue the game    esc >> Exit')
    else write('Press any key to exit.');
 window(1,1,80,25);
 if game<300
    then
       repeat
           com:=readkey;
           case com of
           ' ' : begin inc(game);
                    if move
                       then move:=false
                       else move:=true;
                 start;
                 end;
           #27 : exit;
           end;
       until com=#27
    else
 begin
  readkey;
  exit;
 end;
 window(1,1,80,25);
 start;
end;
 
 
begin
 int:=1;
 p1:=10;
 p2:='X';
 c1:=14;
 c2:='O';
 randomize;
 textbackground(2);
 newgame;
end.
0
Эксперт по компьютерным сетямЭксперт Pascal/Delphi
 Аватар для TAVulator
4191 / 1292 / 237
Регистрация: 27.07.2009
Сообщений: 3,962
18.12.2010, 21:49
DevilSun, дык а где в процедурах begin-end ?
1
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
18.12.2010, 23:42  [ТС]
а если ставить бегины которые конечно нужны (но в последнее время ужасная каша из-за языков так как проги приходится сдавать на си и паскале) пишет что не может найти старт, вин и тп...надо просто все грамотно собрать (...

Добавлено через 12 минут
вот внутри процедур теперь есть win,start и как я понял нужно их определить в самом конце....но не до конца понимаю как... пишет тип Identifier not found

Pascal
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
program X_and_O;
uses crt;
type   pole = array[0..2,0..2] of integer;
var f : pole;
    game,pcalc,ccalc : word;
    wv : integer;
    p1,c1,xcur,ycur,sv,sv2,sv3,int,m : byte;
    com,p2,c2 : char;
    move : boolean;
 
 {==================New Game==================================}
procedure start;
begin
 clrscr;
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 textbackground(2);
 clrscr;
 textcolor(1);
 gotoxy(3,4);
 write('Player:    Computer(');
 case int of
  0 : write(' Hard');
  1 : write(' Norm');
  2 : write(' Easy');
 end;
 write('): 0');
 gotoxy(3,5);
 write('Game: 1');
 textbackground(7);
 textcolor(8);
 gotoxy(1,1);
 clreol;
 write(#24#25#26#27,' >> cursor movement    space >> go    1 >> New game    2 >> Exit      ');
 textbackground(2);
 if move
    then plr_play
    else com_play;
end;
{=======================Player's turn==================================}
procedure plr_play;
begin
 if (game=100) or (game=200) or (game=300) then endgame;
 textcolor(1);
 gotoxy(10,4);
 write(pcalc);
 gotoxy(24,4);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 write('): ');
 write(ccalc);
 gotoxy(9,5);
 case game of
  0..100 : wv:=100-game;
  101..200 : wv:=200-game;
  else wv:=300-game;
 end;
 write(game,'(Remained until the end ',wv,' games)');
 gotoxy(35,10);
 write('ЪДДДВДДДВДДДї');
 gotoxy(35,11);
 write('і   і   і   і');
 gotoxy(35,12);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,13);
 write('і   і   і   і');
 gotoxy(35,14);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,15);
 write('і   і   і   і');
 gotoxy(35,16);
 write('АДДДБДДДБДДДЩ');
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];  {trunc ysekaet do celogo chisla}
  if sv2<>0 then
               begin
                     gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
                     if sv2=1 then
                                 begin textcolor(p1);
                                       write(p2);
                                 end
                               else
                                  begin textcolor(c1);
                                        write(c2);
                                  end;
               end;
  sv:=sv+1;
  until sv=9;
  textcolor(5);
  gotoxy(xcur*4+38,ycur*2+11);
  write('');
  sv:=0;
  repeat
    wv:=f[sv,0]+f[sv,1]+f[sv,2];
    if (wv=3) or (wv=-3)
       then win;
       wv:=f[0,sv]+f[1,sv]+f[2,sv];
    if (wv=3) or (wv=-3)
       then win;
       sv:=sv+1;
  until sv=3;
  wv:=f[0,0]+f[1,1]+f[2,2];
  if (wv=3) or (wv=-3)
     then win;
  wv:=f[2,0]+f[1,1]+f[0,2];
  if (wv=3) or (wv=-3)
     then win;
  if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
     and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
     and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
 then
    begin
        f[0,0]:=0;
        f[0,1]:=0;
        f[0,2]:=0;
        f[1,0]:=0;
        f[1,1]:=0;
        f[1,2]:=0;
        f[2,0]:=0;
        f[2,1]:=0;
        f[2,2]:=0;
        gotoxy(8,8);
        textcolor(14);
        write('Draw.       ');
        game:=game+1;
        if move
           then move:=false
           else move:=true;
        readkey;
        gotoxy(8,8);
        write('             ');
        if move
           then plr_play
           else com_play;
    end;
 com:=readkey;
 case com of
  '1' : newgame;
  '2' : exit;
  ' ' : if f[xcur,ycur]=0
           then begin f[xcur,ycur]:=1;
                      com_play;
                end;
  #27 : exit;
  #0 :
  begin
   com:=readkey;
   case com of
    #72 : if ycur>0
             then ycur:=ycur-1;
    #75 : if xcur>0
             then xcur:=xcur-1;
    #77 : if xcur<2
             then xcur:=xcur+1;
    #80 : if ycur<2
             then ycur:=ycur+1;
   end;
  end;
 end;
 plr_play;
end;
 
{=====================Computer's turn=============================}
procedure com_play;
begin
 if (game=100) or (game=200) or (game=300)
    then endgame;
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];
  if sv2<>0
  then
     begin
          gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
          if sv2=1
             then
                begin textcolor(p1);
                      write(p2);
                end
             else
                begin textcolor(c1);
                      write(c2);
                end;
     end;
  sv:=sv+1;
 until sv=9;
 sv:=0;
 repeat
  wv:=f[sv,0]+f[sv,1]+f[sv,2];
  if (wv=3) or (wv=-3)
     then win;
  wv:=f[0,sv]+f[1,sv]+f[2,sv];
  if (wv=3) or (wv=-3)
     then win;
  sv:=sv+1;
 until sv=3;
 wv:=f[0,0]+f[1,1]+f[2,2];
 if (wv=3) or (wv=-3)
    then win;
 wv:=f[2,0]+f[1,1]+f[0,2];
 if (wv=3) or (wv=-3)
    then win;
 if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
    and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
    and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
    then plr_play;
 if int=2
    then cp2;
 sv:=random(int+2);
 if (sv=2) and (int<>0)
    then cp2;
 if (f[1,1]=0) and (random(3)<>2)
    then
       begin f[1,1]:=-1;
       plr_play;
       end;
 sv:=0;
 repeat
  if (f[sv,0]+f[sv,1]+f[sv,2]=2) or (f[sv,0]+f[sv,1]+f[sv,2]=-2)
     then
        begin
             sv2:=0;
             repeat
             if f[sv,sv2]=0
                then f[sv,sv2]:=-1;
                     sv2:=sv2+1;
             until sv2=3;
             plr_play;
        end;
  if (f[0,sv]+f[1,sv]+f[2,sv]=2) or (f[0,sv]+f[1,sv]+f[2,sv]=-2)
     then
        begin
             sv2:=0;
             repeat
                   if f[sv2,sv]=0
                      then f[sv2,sv]:=-1;
                           sv2:=sv2+1;
             until sv2=3;
             plr_play;
        end;
  sv:=sv+1;
 until sv=3;
 if (f[0,0]+f[1,1]+f[2,2]=2) or (f[0,0]+f[1,1]+f[2,2]=-2)
    then
       begin
            if f[0,0]=0
               then f[0,0]:=-1;
            if f[1,1]=0
               then f[1,1]:=-1;
            if f[2,2]=0
               then f[2,2]:=-1;
            plr_play;
       end;
 if (f[2,0]+f[1,1]+f[0,2]=2) or (f[2,0]+f[1,1]+f[0,2]=-2)
    then
       begin
           if f[2,0]=0
              then f[2,0]:=-1;
           if f[1,1]=0
              then f[1,1]:=-1;
           if f[0,2]=0
              then f[0,2]:=-1;
           plr_play;
       end;
end;
 
 
procedure cp2;
begin
 repeat
  sv:=random(10);
  if f[trunc(sv/3),sv mod 3]=0
     then
         begin f[trunc(sv/3),sv mod 3]:=-1;
               plr_play;
         end;
 until sv=11;
 plr_play;
end;
{============================Game Settings==============================}
procedure newgame;
begin
 clrscr;
 textcolor(1);
 write('   Setting up a new game');
 gotoxy(4,7);
 write('1 >> Computer intelligence: ');
 gotoxy(4,8);
 write('2 >> You"ll play');
 gotoxy(4,11);
 write('5 >> First move');
 gotoxy(4,14);
 textcolor(1);
 write('Space >> start game    esc >> exit');
end;
 
procedure ng2;
begin
 textcolor(14);
 gotoxy(31,7);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 gotoxy(26,8);
 if p2='X'
    then write('X')
    else write('O');
 gotoxy(20,11);
 case m of
  0 : write('Random  ');
  1 : write('Your    ');
  2 : write('Copmuter');
 end;
 gotoxy(4,9);
 textcolor(p1);
 write('3 >> Your color');
 gotoxy(4,10);
 textcolor(c1);
 write('4 >> Color computer');
 com:=readkey;
 case com of
  '1' : if int>0
           then dec(int)
           else int:=2;
  '2' : if p2='X'
           then
              begin p2:='O';
                    c2:='X';
              end
           else
              begin p2:='X';
                    c2:='O';
              end;
  '3' : begin if p1<15
                 then p1:=p1+1
                 else p1:=0;
              if p1=2
                 then p1:=3;
        end;
  '4' : begin if c1<15
                 then c1:=c1+1
                 else c1:=0;
              if c1=2
                 then c1:=3;
        end;
  '5' : if m<2
           then m:=m+1
           else m:=0;
  #27 : exit;
  ' ' :
  begin
   sv:=random(2);
   case m of
    0 : if sv<1
           then move:=true
           else move:=false;
    1 : move:=true;
    2 : move:=false;
   end;
   game:=1;
   pcalc:=0;
   ccalc:=0;
   start;
  end;
 end;
 ng2;
end;
 
{=======================Win===========================================}
procedure win;
begin
 gotoxy(8,8);
 clreol;
 if wv=3
    then
       begin pcalc:=pcalc+1;
             textcolor(4);
             write('You win!');
       end
    else
        begin textcolor(8);
              write('You lost.');
              ccalc:=ccalc+1;
        end;
 game:=game+1;
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 readkey;
 gotoxy(1,8);
 clreol;
 if move
    then move:=false
    else move:=true;
 if move
    then plr_play
    else com_play;
end;
{=============================Game over===============================}
procedure endgame;
begin
 delay(6400);
 while keypressed do readkey;
 clrscr;
 textcolor(7);
 gotoxy(35,3);
 if game<300
    then
        write('Tournament is over.')
        else write('Geme over.');
 textcolor(5);
 if pcalc>ccalc
    then
        begin gotoxy(15,6);
              write('You won with a score of ',pcalc,':',ccalc,' Congratulations!');
        end;
 if pcalc=ccalc
    then
        begin gotoxy(36,6);
              write('Drow. ',pcalc,':',ccalc);
        end;
 if pcalc<ccalc
    then
        begin gotoxy(15,6);
              write('Sorry,you lost by a score ',pcalc,':',ccalc);
        end;
 window(5,10,80,25);
 textcolor(14);
 write('Computer intilekt: ');
 case int of
  0 : writeln('Hard.');
  1 : writeln('Norm.');
  2 : writeln('Easy.');
 end;
 writeln;
 writeln('   Assessment of your abilities :');
 writeln('Winnings: ',round(pcalc/game*100),'%');
 writeln('Losses: ',round(ccalc/game*100),'%');
 writeln('Game to a draw: ',100-round(pcalc/game*100)-round(ccalc/game*100),'%');
 writeln;
 writeln('Computer experience:');
 textcolor(4);
 wv:=round(pcalc/game*100);
 case int of
  1 : dec(wv,-5);
  2 : dec(wv,-10);
 end;
 case wv of
  -10..-6 : write('"Well, and the brake!"');
  -5..0 : write('"do not know how to play."');
  1..10 : write('"Surely someone is worse?"');
  11..20 : write('"You need a good workout!"');
  21..30 : write('"Sucks play."');
  31..40 : write('"Say the least not very."');
  41..50 : write('"Not bad, not bad, but can be much better."');
  51..60 : write('"Good result. Though of course it is possible and better...');
  61..70 : write('"Play good!"');
  71..80 : write('"Cool game! You how many megabytes of memory?"');
  81..90 : write('"Good result! Oh, I would so..."');
  91..97 : write('"Great game!!!"');
  98..100 : begin textcolor(6);
                  write('"Are you a supercomputer?!"');
            end;
 end;
 writeln;
 writeln;
 writeln;
 textcolor(1);
 if game<300
    then write('Space >> continue the game    esc >> Exit')
    else write('Press any key to exit.');
 window(1,1,80,25);
 if game<300
    then
       repeat
           com:=readkey;
           case com of
           ' ' : begin inc(game);
                    if move
                       then move:=false
                       else move:=true;
                 start;
                 end;
           #27 : exit;
           end;
       until com=#27
    else
 begin
  readkey;
  exit;
 end;
 window(1,1,80,25);
 start;
end;
 
 
begin
 int:=1;
 p1:=10;
 p2:='X';
 c1:=14;
 c2:='O';
 randomize;
 textbackground(2);
 newgame;
end.
0
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
22.12.2010, 23:17  [ТС]
ПОМОГИТЕ!(( не могу придумать как сделать чтоб это работало(...все время получается что в процедуре вызывается процедура описанная после нее((
0
Эксперт по компьютерным сетямЭксперт Pascal/Delphi
 Аватар для TAVulator
4191 / 1292 / 237
Регистрация: 27.07.2009
Сообщений: 3,962
22.12.2010, 23:37
Цитата Сообщение от DevilSun Посмотреть сообщение
все время получается что в процедуре вызывается процедура описанная после нее
заForwardируй процедуры...
1
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
22.12.2010, 23:54  [ТС]
к сожалению я больше не изучаю паскаль...и я таково не проходил( так что плохо понимаю что нужно сделать...что то типа рекурсии но как оформить хз

Добавлено через 14 минут
хотя если использовать то на 6 ошибок меньше....вот я после процедуры старт forward написал и теперь гругается только на ход игрока и компьютера
0
Эксперт по компьютерным сетямЭксперт Pascal/Delphi
 Аватар для TAVulator
4191 / 1292 / 237
Регистрация: 27.07.2009
Сообщений: 3,962
22.12.2010, 23:55
зачем рекурсия?
просто в начале программы объяви все процедуры.
перед первой процедурой составь список всех процедур в таком виде:
procedure start: forward;
procedure plr_play: forward;
и т.д.
1
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
23.12.2010, 00:49  [ТС]
Во я прочитал про Forward и врооде понял)))) там остлость 2 ошибки надеюсь разберусь с ними)))

Добавлено через 1 минуту
я когда бегло прочитал подумал надо в самой процедуре писать....а потом вник)) спасибо за идею))

Добавлено через 42 минуты
новый вопрос...ошибок нет...все компилирует...но не работает хотя версия с метками пашет( На фри паскале хоть меню открывалось а сейчас только окошко компилятора меньше становится( может это из-за того что надо параметры прописать процедурам или что


Pascal
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
program X_and_O;
uses crt;
type   pole = array[0..2,0..2] of integer;
var f : pole;
    game,pcalc,ccalc : word;
    wv : integer;
    p1,c1,xcur,ycur,sv,sv2,sv3,int,m : byte;
    com,p2,c2 : char;
    move : boolean;
 
procedure Start;
Forward;
procedure newgame;
Forward;
procedure cp2;
Forward;
procedure com_play;
Forward;
procedure plr_play;
Forward;
{=============================Game over===============================}
procedure endgame;
begin
 delay(6400);
 while keypressed do readkey;
 clrscr;
 textcolor(7);
 gotoxy(35,3);
 if game<300
    then
        write('Tournament is over.')
        else write('Geme over.');
 textcolor(5);
 if pcalc>ccalc
    then
        begin gotoxy(15,6);
              write('You won with a score of ',pcalc,':',ccalc,' Congratulations!');
        end;
 if pcalc=ccalc
    then
        begin gotoxy(36,6);
              write('Drow. ',pcalc,':',ccalc);
        end;
 if pcalc<ccalc
    then
        begin gotoxy(15,6);
              write('Sorry,you lost by a score ',pcalc,':',ccalc);
        end;
 window(5,10,80,25);
 textcolor(14);
 write('Computer intilekt: ');
 case int of
  0 : writeln('Hard.');
  1 : writeln('Norm.');
  2 : writeln('Easy.');
 end;
 writeln;
 writeln('   Assessment of your abilities :');
 writeln('Winnings: ',round(pcalc/game*100),'%');
 writeln('Losses: ',round(ccalc/game*100),'%');
 writeln('Game to a draw: ',100-round(pcalc/game*100)-round(ccalc/game*100),'%');
 writeln;
 writeln('Computer experience:');
 textcolor(4);
 wv:=round(pcalc/game*100);
 case int of
  1 : dec(wv,-5);
  2 : dec(wv,-10);
 end;
 case wv of
  -10..-6 : write('"Well, and the brake!"');
  -5..0 : write('"do not know how to play."');
  1..10 : write('"Surely someone is worse?"');
  11..20 : write('"You need a good workout!"');
  21..30 : write('"Sucks play."');
  31..40 : write('"Say the least not very."');
  41..50 : write('"Not bad, not bad, but can be much better."');
  51..60 : write('"Good result. Though of course it is possible and better...');
  61..70 : write('"Play good!"');
  71..80 : write('"Cool game! You how many megabytes of memory?"');
  81..90 : write('"Good result! Oh, I would so..."');
  91..97 : write('"Great game!!!"');
  98..100 : begin textcolor(6);
                  write('"Are you a supercomputer?!"');
            end;
 end;
 writeln;
 writeln;
 writeln;
 textcolor(1);
 if game<300
    then write('Space >> continue the game    esc >> Exit')
    else write('Press any key to exit.');
 window(1,1,80,25);
 if game<300
    then
       repeat
           com:=readkey;
           case com of
           ' ' : begin inc(game);
                    if move
                       then move:=false
                       else move:=true;
                 start;
                 end;
           #27 : exit;
           end;
       until com=#27
    else
 begin
  readkey;
  exit;
 end;
 window(1,1,80,25);
 start;
end;
{=======================Win===========================================}
procedure win;
begin
 gotoxy(8,8);
 clreol;
 if wv=3
    then
       begin pcalc:=pcalc+1;
             textcolor(4);
             write('You win!');
       end
    else
        begin textcolor(8);
              write('You lost.');
              ccalc:=ccalc+1;
        end;
 game:=game+1;
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 readkey;
 gotoxy(1,8);
 clreol;
 if move
    then move:=false
    else move:=true;
 if move
    then plr_play
    else com_play;
end;
{=======================Player's turn==================================}
procedure plr_play;
begin
 if (game=100) or (game=200) or (game=300) then endgame;
 textcolor(1);
 gotoxy(10,4);
 write(pcalc);
 gotoxy(24,4);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 write('): ');
 write(ccalc);
 gotoxy(9,5);
 case game of
  0..100 : wv:=100-game;
  101..200 : wv:=200-game;
  else wv:=300-game;
 end;
 write(game,'(Remained until the end ',wv,' games)');
 gotoxy(35,10);
 write('ЪДДДВДДДВДДДї');
 gotoxy(35,11);
 write('і   і   і   і');
 gotoxy(35,12);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,13);
 write('і   і   і   і');
 gotoxy(35,14);
 write('ГДДДЕДДДЕДДДґ');
 gotoxy(35,15);
 write('і   і   і   і');
 gotoxy(35,16);
 write('АДДДБДДДБДДДЩ');
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];  {trunc ysekaet do celogo chisla}
  if sv2<>0 then
               begin
                     gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
                     if sv2=1 then
                                 begin textcolor(p1);
                                       write(p2);
                                 end
                               else
                                  begin textcolor(c1);
                                        write(c2);
                                  end;
               end;
  sv:=sv+1;
  until sv=9;
  textcolor(5);
  gotoxy(xcur*4+38,ycur*2+11);
  write('');
  sv:=0;
  repeat
    wv:=f[sv,0]+f[sv,1]+f[sv,2];
    if (wv=3) or (wv=-3)
       then win;
       wv:=f[0,sv]+f[1,sv]+f[2,sv];
    if (wv=3) or (wv=-3)
       then win;
       sv:=sv+1;
  until sv=3;
  wv:=f[0,0]+f[1,1]+f[2,2];
  if (wv=3) or (wv=-3)
     then win;
  wv:=f[2,0]+f[1,1]+f[0,2];
  if (wv=3) or (wv=-3)
     then win;
  if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
     and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
     and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
 then
    begin
        f[0,0]:=0;
        f[0,1]:=0;
        f[0,2]:=0;
        f[1,0]:=0;
        f[1,1]:=0;
        f[1,2]:=0;
        f[2,0]:=0;
        f[2,1]:=0;
        f[2,2]:=0;
        gotoxy(8,8);
        textcolor(14);
        write('Draw.       ');
        game:=game+1;
        if move
           then move:=false
           else move:=true;
        readkey;
        gotoxy(8,8);
        write('             ');
        if move
           then plr_play
           else com_play;
    end;
 com:=readkey;
 case com of
  '1' : newgame;
  '2' : exit;
  ' ' : if f[xcur,ycur]=0
           then begin f[xcur,ycur]:=1;
                      com_play;
                end;
  #27 : exit;
  #0 :
  begin
   com:=readkey;
   case com of
    #72 : if ycur>0
             then ycur:=ycur-1;
    #75 : if xcur>0
             then xcur:=xcur-1;
    #77 : if xcur<2
             then xcur:=xcur+1;
    #80 : if ycur<2
             then ycur:=ycur+1;
   end;
  end;
 end;
 plr_play;
end;
 
{=====================Computer's turn=============================}
procedure com_play;
begin
 if (game=100) or (game=200) or (game=300)
    then endgame;
 sv:=0;
 repeat
  sv2:=f[trunc(sv/3),sv mod 3];
  if sv2<>0
  then
     begin
          gotoxy(trunc(sv/3)*4+37,(sv mod 3)*2+11);
          if sv2=1
             then
                begin textcolor(p1);
                      write(p2);
                end
             else
                begin textcolor(c1);
                      write(c2);
                end;
     end;
  sv:=sv+1;
 until sv=9;
 sv:=0;
 repeat
  wv:=f[sv,0]+f[sv,1]+f[sv,2];
  if (wv=3) or (wv=-3)
     then win;
  wv:=f[0,sv]+f[1,sv]+f[2,sv];
  if (wv=3) or (wv=-3)
     then win;
  sv:=sv+1;
 until sv=3;
 wv:=f[0,0]+f[1,1]+f[2,2];
 if (wv=3) or (wv=-3)
    then win;
 wv:=f[2,0]+f[1,1]+f[0,2];
 if (wv=3) or (wv=-3)
    then win;
 if (f[0,0]<>0) and (f[0,1]<>0) and (f[0,2]<>0)
    and (f[1,0]<>0) and (f[1,1]<>0) and (f[1,2]<>0)
    and (f[2,0]<>0) and (f[2,1]<>0) and (f[2,2]<>0)
    then plr_play;
 if int=2
    then cp2;
 sv:=random(int+2);
 if (sv=2) and (int<>0)
    then cp2;
 if (f[1,1]=0) and (random(3)<>2)
    then
       begin f[1,1]:=-1;
       plr_play;
       end;
 sv:=0;
 repeat
  if (f[sv,0]+f[sv,1]+f[sv,2]=2) or (f[sv,0]+f[sv,1]+f[sv,2]=-2)
     then
        begin
             sv2:=0;
             repeat
             if f[sv,sv2]=0
                then f[sv,sv2]:=-1;
                     sv2:=sv2+1;
             until sv2=3;
             plr_play;
        end;
  if (f[0,sv]+f[1,sv]+f[2,sv]=2) or (f[0,sv]+f[1,sv]+f[2,sv]=-2)
     then
        begin
             sv2:=0;
             repeat
                   if f[sv2,sv]=0
                      then f[sv2,sv]:=-1;
                           sv2:=sv2+1;
             until sv2=3;
             plr_play;
        end;
  sv:=sv+1;
 until sv=3;
 if (f[0,0]+f[1,1]+f[2,2]=2) or (f[0,0]+f[1,1]+f[2,2]=-2)
    then
       begin
            if f[0,0]=0
               then f[0,0]:=-1;
            if f[1,1]=0
               then f[1,1]:=-1;
            if f[2,2]=0
               then f[2,2]:=-1;
            plr_play;
       end;
 if (f[2,0]+f[1,1]+f[0,2]=2) or (f[2,0]+f[1,1]+f[0,2]=-2)
    then
       begin
           if f[2,0]=0
              then f[2,0]:=-1;
           if f[1,1]=0
              then f[1,1]:=-1;
           if f[0,2]=0
              then f[0,2]:=-1;
           plr_play;
       end;
end;
 
 
procedure cp2;
begin
 repeat
  sv:=random(10);
  if f[trunc(sv/3),sv mod 3]=0
     then
         begin f[trunc(sv/3),sv mod 3]:=-1;
               plr_play;
         end;
 until sv=11;
 plr_play;
end;
 
{==================New Game==================================}
procedure start;
begin
 clrscr;
 f[0,0]:=0;
 f[0,1]:=0;
 f[0,2]:=0;
 f[1,0]:=0;
 f[1,1]:=0;
 f[1,2]:=0;
 f[2,0]:=0;
 f[2,1]:=0;
 f[2,2]:=0;
 textbackground(2);
 clrscr;
 textcolor(1);
 gotoxy(3,4);
 write('Player:    Computer(');
 case int of
  0 : write(' Hard');
  1 : write(' Norm');
  2 : write(' Easy');
 end;
 write('): 0');
 gotoxy(3,5);
 write('Game: 1');
 textbackground(7);
 textcolor(8);
 gotoxy(1,1);
 clreol;
 write(#24#25#26#27,' >> cursor movement    space >> go    1 >> New game    2 >> Exit      ');
 textbackground(2);
 if move
    then plr_play
    else com_play;
end;
 
{============================Game Settings==============================}
procedure newgame;
begin
 clrscr;
 textcolor(1);
 write('   Setting up a new game');
 gotoxy(4,7);
 write('1 >> Computer intelligence: ');
 gotoxy(4,8);
 write('2 >> You"ll play');
 gotoxy(4,11);
 write('5 >> First move');
 gotoxy(4,14);
 textcolor(1);
 write('Space >> start game    esc >> exit');
end;
 
procedure ng2;
begin
 textcolor(14);
 gotoxy(31,7);
 case int of
  0 : write('Hard');
  1 : write('Norm');
  2 : write('Easy');
 end;
 gotoxy(26,8);
 if p2='X'
    then write('X')
    else write('O');
 gotoxy(20,11);
 case m of
  0 : write('Random  ');
  1 : write('Your    ');
  2 : write('Copmuter');
 end;
 gotoxy(4,9);
 textcolor(p1);
 write('3 >> Your color');
 gotoxy(4,10);
 textcolor(c1);
 write('4 >> Color computer');
 com:=readkey;
 case com of
  '1' : if int>0
           then dec(int)
           else int:=2;
  '2' : if p2='X'
           then
              begin p2:='O';
                    c2:='X';
              end
           else
              begin p2:='X';
                    c2:='O';
              end;
  '3' : begin if p1<15
                 then p1:=p1+1
                 else p1:=0;
              if p1=2
                 then p1:=3;
        end;
  '4' : begin if c1<15
                 then c1:=c1+1
                 else c1:=0;
              if c1=2
                 then c1:=3;
        end;
  '5' : if m<2
           then m:=m+1
           else m:=0;
  #27 : exit;
  ' ' :
  begin
   sv:=random(2);
   case m of
    0 : if sv<1
           then move:=true
           else move:=false;
    1 : move:=true;
    2 : move:=false;
   end;
   game:=1;
   pcalc:=0;
   ccalc:=0;
   start;
  end;
 end;
 ng2;
end;
 
 
 
begin
 int:=1;
 p1:=10;
 p2:='X';
 c1:=14;
 c2:='O';
 randomize;
 textbackground(2);
end.
0
Эксперт по компьютерным сетямЭксперт Pascal/Delphi
 Аватар для TAVulator
4191 / 1292 / 237
Регистрация: 27.07.2009
Сообщений: 3,962
23.12.2010, 01:13
Цитата Сообщение от DevilSun Посмотреть сообщение
begin
int:=1;
p1:=10;
p2:='X';
c1:=14;
c2:='O';
randomize;
textbackground(2);
end.
а вызов процедур где?
1
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
23.12.2010, 01:16  [ТС]
вот я через стек просмотрел что он делает.... я добавил Newgame и все равно вылетает....а посути больше ничего и не надо....

Pascal
1
2
3
4
5
6
7
8
9
10
begin
 int:=1;
 p1:=10;
 p2:='X';
 c1:=14;
 c2:='O';
 randomize;
 textbackground(2);
 newgame;
end.
так как уже оттуда все остальное запускается.....но в саму процедуру он не заходит((....
0
Эксперт по компьютерным сетямЭксперт Pascal/Delphi
 Аватар для TAVulator
4191 / 1292 / 237
Регистрация: 27.07.2009
Сообщений: 3,962
23.12.2010, 01:18
Цитата Сообщение от DevilSun Посмотреть сообщение
в саму процедуру он не заходит
заходит.
трассировкой посмотри какие строки он проходит.
1
0 / 0 / 0
Регистрация: 17.12.2010
Сообщений: 9
23.12.2010, 01:38  [ТС]
все исправил)) не хватало всего то вызова ng2))) завтра проверю полную работоспособность))) а то полностью работает только в турбо паскале...а у меня 7-ка 64-х разрядная и на нее нет его(((( я не нашел.....если только через дос бокс

Добавлено через 22 секунды
спасибо огромное за помощь!!
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
23.12.2010, 01:38
Помогаю со студенческими работами здесь

Использование имени процедуры в качестве параметра другой процедуры
Help! Для массива С из n элементов составить процедуру, которая находит значения m наименьших его...

Процедуры и функции: решить через процедуры S=a*x+b*y+c*z.
Пожалуста помогите решить через процедуры S=a*x+b*y+c*z.

Использование имени процедуры в качестве параметра другой процедуры
Составить программу по заданному условию.Первая часть условия является заданием на разработку...

Оформить программу с помощью процедуры ввода массива и процедуры вывода массива на экран.
Program Primer1; uses crt; var a: array of integer; i: integer; Begin clrscr; for i:=1 to...

Использование имени процедуры в качестве параметра другой процедуры
Для заданного массива В составить процедуру, определяющую отрезок, на который попадают заданного...


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

Или воспользуйтесь поиском по форуму:
16
Ответ Создать тему
Новые блоги и статьи
Очистка реквизитов документа при копировании
Maks 09.04.2026
Алгоритм из решения ниже применим как для типовых, так и для нетиповых документов на самых различных конфигурациях. Задача: при копировании документа очищать определенные реквизиты и табличную. . .
модель ЗдравоСохранения 8. Подготовка к разному выполнению заданий
anaschu 08.04.2026
https:/ / github. com/ shumilovas/ med2. git main ветка * содержимое блока дэлэй из старой модели теперь внутри зайца новой модели 8ATzM_2aurI
Блокировка документа от изменений, если он открыт у другого пользователя
Maks 08.04.2026
Алгоритм из решения ниже реализован на примере нетипового документа, разработанного в конфигурации КА2. Задача: запретить редактирование документа, если он открыт у другого пользователя. / / . . .
Система безопасности+живучести для сервера-слоя интернета (сети). Двойная привязка.
Hrethgir 08.04.2026
Далее были размышления о системе безопасности. Сообщения с наклонным текстом - мои. А как нам будет можно проверить, что ссылка наша, а не подделана хулиганами, которая выбросит на другую ветку и. . .
Модель ЗдрввоСохранения 7: больше работников, больше ресурсов.
anaschu 08.04.2026
работников и заданий может быть сколько угодно, но настроено всё так, что используется пока что только 20% kYBz3eJf3jQ
Дальние перспективы сервера - слоя сети с космологическим дизайном интефейса карты и логики.
Hrethgir 07.04.2026
Дальнейшее ближайшее планирование вывело к размышлениям над дальними перспективами. И вот тут может быть даже будут нужны оценки специалистов, так как в дальних перспективах всё может очень сильно. . .
Горе от ума
kumehtar 07.04.2026
Эта мне ментальная установка, что вот прямо сейчас, мол, мне для полного счастья не хватает (нужное вписать), и когда я этого достигну - тогда и полный кайф. Одна из самых сильных ловушек на пути. . . .
Использование значений реквизитов справочника в документе, с определенными условиями и правами
Maks 07.04.2026
1. Контроль срока действия договора Алгоритм из решения ниже реализован на примере нетипового документа "ЗаявкаНаРаботу", разработанного в конфигурации КА2. Задача: уведомлять пользователя, если. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru