Форум программистов, компьютерный форум, киберфорум
С++ для начинающих
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.67/9: Рейтинг темы: голосов - 9, средняя оценка - 4.67
6 / 2 / 1
Регистрация: 18.11.2012
Сообщений: 64

Подскажите, пожалуйста, как исправить ошибку

16.07.2013, 21:45. Показов 1808. Ответов 1
Метки нет (Все метки)

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

main.cpp

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
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <io.h>
#include <dos.h>
#include "func.cpp"
 
using namespace std;
 
       char ch, *file;
       int err=0, size=0;
 
 
     extern char *file;
 
         void create();
        void main(){
           system("cls");
cout<<"Viberite deistvie:"<<endl;
cout<<"1. Otkrit' bazu"<<endl;
cout<<"2. Sozdat' bazu"<<endl;
cout<<"3. Vihod"<<endl;
      do ch=getch();
        while((ch!='1')&&(ch!='2')&&(ch!='3'));
          if (ch=='3') exit(0);
          if (ch=='2') create();
          if (ch=='1') {
        while (err==0){
  cout<<"Please enter name file: "<<endl;
      char *name;
         FILE *f;
           cin>>name;
              if ((f=fopen(name,"r"))==NULL){
                  cout<<"File not found!"<<endl;
          }
                  else{
              err=1;
                 file=new char(strlen(name)); 
           strcpy(file,name);
        fclose(f);
          open(file);
   } 
 }
}
   delete file;
}

func.cpp

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
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
#include <iostream>
#include <string>
#include <conio.h>
 
using namespace std;
 
extern char ch;
extern int size;
int fs=0;
/*const int tab=1;
const int zag=4;
const int tex=7;*/
struct AVIA {
char fio[50], route[30], date[17];
int seat,flight,id;
} list[300],tmp, fin[300];
void load(char *base);
void save(char *base);
void add(char *base);
void view(char *base);
void edit(char *base);
void delet(char *base);
void find(char *base);
void sort(char *base);
void sort1();
void sort2();
void sort3();
void sort4();
void sort5();
void replace(int);
 
void open(char *base){
load(base);
system("cls");
cout<<"Vibirite deistvie:"<<endl;
cout<<"1. Prosmotr"<<endl;
cout<<"2. Pravka bazi"<<endl;
cout<<"3. Dobavlenie "<<endl;
cout<<"4. Udalenie zapisi"<<endl;
cout<<"5. Poisk "<<endl;
cout<<"6. Sortirovka"<<endl;
cout<<"7. Vihod"<<endl;
    do ch=getch();
        while((ch!='1')&&(ch!='2')&&(ch!='3')&&(ch!='4')&&(ch!='5')&&(ch!='6')&&(ch!='7'));
    switch (ch){
        case '1': view(base);break;
        case '2': edit(base);break;
        case '3': add(base);break;
        case '4': delet(base);break;
        case '5': find(base);break;
        case '6': sort(base);break;
        case '7': exit(0); break;
            default: exit(0);}
                }
 
void sort(char *base){
    system("cls");
cout<<"Please select field:\r\n1.Full name 2.Marshrut 3. Kolichestvo svobodnikh mest 4.Nomer reisa' 5.Data\n6.Back to menu"<<endl;
    do ch=getch();
        while((ch!='1')&&(ch!='2')&&(ch!='3')&&(ch!='4')&&(ch!='5')&&(ch!='6'));
    switch (ch){
        case '1': sort1();break;
        case '2': sort2();break;
        case '3': sort3();break;
        case '4': sort4();break;
        case '5': sort5();break;
        case '6': open(base);break;
            default: exit(0);}
        save(base);
    cout<<"\r\nSorting...OK! View base";
    getch();
    open(base);}
 
void sort1(){
int i,j;
for (i=0; i<size; i++)
for (j=0; j<size; j++)
if (strcmp(list[j].fio,list[j+1].fio)>0) replace(j);
}
 
void sort2(){
int i,j;
for (i=0; i<size; i++)
for (j=0; j<size; j++)
if (strcmp(list[j].route,list[j+1].route)>0) replace(j);
}
 
void sort3(){
int i,j;
for (i=0; i<size; i++)
for (j=0; j<size; j++)
if (list[j].seat<list[j+1].seat) replace(j);}
 
void sort4(){
int i,j;
for (i=0; i<size; i++)
for (j=0; j<size; j++)
if (list[j].flight<list[j+1].flight) replace(j);}
 
void sort5(){
int i,j;
for (i=0; i<size; i++)
for (j=0; j<size; j++)
if (strcmp(list[j].date,list[j+1].date)>0) replace(j);}
 
void replace(int x){
strcpy(tmp.fio,list[x].fio);
strcpy(tmp.route,list[x].route);
tmp.seat=list[x].seat;
tmp.flight=list[x].flight;
strcpy(tmp.date,list[x].date);//1
strcpy(list[x].fio,list[x+1].fio);
strcpy(list[x].route,list[x+1].route);
list[x].seat=list[x+1].seat;
list[x].flight=list[x+1].flight;
strcpy(list[x].date,list[x+1].date);//2
strcpy(list[x+1].fio,tmp.fio);
strcpy(list[x+1].route,tmp.route);
list[x+1].seat=tmp.seat;
list[x+1].flight=tmp.flight;
strcpy(list[x+1].date,tmp.date);//3
strcpy(tmp.fio, "");
strcpy(tmp.route, "");
tmp.seat=0;
tmp.flight=0;
strcpy(tmp.date, "");
}
 
void find(char *base){
system("cls");
cout<<"Please enter find record:\r\n";
cout<<"Full Name: "<<endl; cin>>tmp.fio;
cout<<"Marshrut: "<<endl; cin>>tmp.route;
cout<<"Kolichestvo svobodnikh mest: "<<endl; cin>>tmp.seat;
cout<<"Nomer reisa: "<<endl; cin>>tmp.flight;
cout<<"Data: "<<endl; cin>>tmp.date;
char *css;
int t=0;
for (;t<=strlen(tmp.fio);t++){
css=strchr (tmp.fio,' '); if (css) *(css)='_';}
int j=0,i=0;
for (;j<=size;j++)
if ((strcmp(tmp.fio,list[j].fio)==0)||(strcmp(tmp.route,list[j].route)==0)||(tmp.seat==list[j].seat)||(tmp.flight==list[j].flight)||(strcmp(tmp.date,list[j].date)==0)){
strcpy(fin[i].fio,list[j].fio);
strcpy(fin[i].route,list[j].route);
fin[i].seat=list[j].seat;
fin[i].flight=list[j].flight;
strcpy(fin[i].date,list[j].date);
fin[i].id=list[j].id;i++;
    }
fs=--i;
strcpy(tmp.fio, "");
strcpy(tmp.route, "");
tmp.seat=0;
tmp.flight=0;
strcpy(tmp.date, "");
getch();
int z,l,p=0;
 
system("cls");
 
cout<<" ID ";
cout<<" Full Name ";
cout<<" Marshrut ";
cout<<" Kolichestvo svobodnikh mest ";
cout<<" Nomer reisa' "; 
cout<<" Data "; 
cout<<endl;
for(z=0; z<=fs; z++){
cout<<fin[z].id<<"  ";
cout<<fin[z].fio<<"  ";
cout<<fin[z].route<<"  ";
cout<<fin[z].seat<<"  ";
cout<<fin[z].flight<<"  ";
cout<<fin[z].date<<"  ";
cout<<endl;
p++;
if (p==10){
p=0;getch();}}
getch();open(base);}
 
void delet (char *base){
system("cls");
int i,j;
cout<<"ID: ";
cin>>i;
--i;
if (i==size) --size;
    else{
    for (j=i;j<size;j++){
    strcpy(list[j].fio,list[j+1].fio);
    strcpy(list[j].route,list[j+1].route);
    list[j].seat=list[j+1].seat;
    list[j].flight=list[j+1].flight;
    strcpy(list[j].date,list[j+1].date);
    }
    --size;}
cout<<"\r\nDelete record"<<i+1<<"OK!\r\n";
getch();
save(base);
open(base);}
 
void edit(char *base){
system("cls");
int i;
cout<<"ID: "; cin>>i; --i;
cout<<"\r\nOLD:\r\n";
cout<<"Full name : \n"<<list[i].fio;
cout<<"Matshrut : \n"<<list[i].route;
cout<<"Kolichestvo svobodnikh mest : \n"<<list[i].seat;
cout<<"Nomer reisa' : \n"<<list[i].flight;
cout<<"Data\n"<<list[i].date;
cout<<"\r\nNEW:\r\n";
cout<<"Full name: "; cin>>tmp.fio;
cout<<"Marshrut: ";     cin>>tmp.route;
cout<<"Kolichestvo svobodnikh mest: ";     cin>>tmp.seat;
cout<<"Nomer reisa': "; cin>>tmp.flight;
cout<<"Data: "; cin>>tmp.date;
char *css;
int t=0;
for (;t<=strlen(tmp.fio);t++){
css=strchr (tmp.fio,' '); if (css) *(css)='_';}
strcpy(list[i].fio,tmp.fio);
strcpy(list[i].route,tmp.route);
list[i].seat=tmp.seat;
list[i].flight=tmp.flight;
strcpy(list[i].date,tmp.date);
strcpy(tmp.fio, "");
strcpy(tmp.route, "");
tmp.seat=0;
tmp.flight=0;
strcpy(tmp.date,"");
save(base);
getch();
open(base);}
 
void view(char *base){
int z,l,p=0;
system("cls");
 
cout<<" ID: ";
cout<<" Full Name: ";
cout<<" Marshrut: "; 
cout<<" Kolichestvo svobodnikh mest: ";
cout<<" Nomer reisa': ";
cout<<" Data: ";
cout<<endl;
for(z=0; z<=size; z++){
cout<<list[z].id<<"  ";
cout<<list[z].fio<<"  ";
cout<<list[z].route<<"  ";
cout<<list[z].seat<<"  ";
cout<<list[z].flight<<"  ";
cout<<list[z].date<<"  ";
cout<<endl;
p++;
if (p==10){
p=0;getch();}}
getch();
open(base);
}
 
void add(char *base){
system("cls");
FILE *f=fopen(base,"a");
cout<<"Full Name: "; cin>>tmp.fio;
cout<<"Marshrut: "; cin>>tmp.route;
cout<<" Kolichestvo svobodnikh mest: "; cin>>tmp.seat;
cout<<"Nomer reisa': "; cin>>tmp.flight;
cout<<"Data: "; cin>>tmp.date;
char *css;
int t=0;
for (;t<=strlen(tmp.fio);t++){
css=strchr (tmp.fio,' '); if (css) *(css)='_';}
size++;
strcpy(list[size].fio,tmp.fio);
strcpy(list[size].route,tmp.route);
list[size].seat=tmp.seat;
list[size].flight=tmp.flight;
strcpy(list[size].date,tmp.date);
strcpy(tmp.fio, "");
strcpy(tmp.route, "");
tmp.seat=0;
tmp.flight=0;
strcpy(tmp.date, "");
fclose(f);
save(base);
open(base);
}
 
void save(char *base){
int j=0;
FILE *f=fopen(base,"w");
fprintf(f,"%s %s %u %u %s", list[j].fio, list[j].route,   list[j].seat, list[j].flight, list[j].date);
for (j=1;j<=size;j++)
fprintf(f,"\n%s %s %u %u %s", list[j].fio, list[j].route, list[j].seat, list[j].flight, list[j].date);
fclose(f);
}
 
void load(char *base){
int j=0;
FILE *f=fopen(base,"r");
while(!feof(f)){
fscanf(f,"%s %s %u %u %s", &tmp.fio , &tmp.route,   &tmp.seat, &tmp.flight, &tmp.date);
if (strcmp(tmp.fio,"")!=0){
strcpy(list[j].fio,tmp.fio);
strcpy(list[j].route,tmp.route);
list[j].seat=tmp.seat;
list[j].flight=tmp.flight;
strcpy(list[j].date,tmp.date);
list[j].id=j+1;
j++;}
strcpy(tmp.fio, "");
strcpy(tmp.route, "");
tmp.seat=0;
tmp.flight=0;
strcpy(tmp.date, "");}
size=--j;
fclose(f);}
Вывод(/ошибки):
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
1>------ Построение начато: проект: Example_111, Конфигурация: Debug Win32 ------
1>  main.cpp
1>d:\c++\2-semestr\example_111\example_111\func.cpp(43): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(59): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(71): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(107): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(108): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(111): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(112): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(113): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(116): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(117): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(118): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(121): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(122): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(123): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(126): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(139): warning C4018: <=: несоответствие типов со знаком и без знака
1>d:\c++\2-semestr\example_111\example_111\func.cpp(144): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(145): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(148): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(152): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(153): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(156): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(157): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(179): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(180): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(158): warning C4101: l: неиспользованная локальная переменная
1>d:\c++\2-semestr\example_111\example_111\func.cpp(191): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(192): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(195): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(199): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(221): warning C4018: <=: несоответствие типов со знаком и без знака
1>d:\c++\2-semestr\example_111\example_111\func.cpp(223): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(224): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(227): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(228): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(229): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(232): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(234): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(258): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(259): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(238): warning C4101: l: неиспользованная локальная переменная
1>d:\c++\2-semestr\example_111\example_111\func.cpp(265): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(218): см. объявление "fopen"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(273): warning C4018: <=: несоответствие типов со знаком и без знака
1>d:\c++\2-semestr\example_111\example_111\func.cpp(276): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(277): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(280): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(281): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(282): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(285): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(293): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(218): см. объявление "fopen"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(302): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(218): см. объявление "fopen"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(304): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(237): см. объявление "fscanf"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(306): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(307): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(310): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(313): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(314): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(317): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\main.cpp(28): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\main.cpp(38): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(218): см. объявление "fopen"
1>d:\c++\2-semestr\example_111\example_111\main.cpp(44): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>  func.cpp
1>d:\c++\2-semestr\example_111\example_111\func.cpp(43): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(59): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(71): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(107): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(108): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(111): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(112): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(113): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(116): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(117): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(118): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(121): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(122): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(123): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(126): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(139): warning C4018: <=: несоответствие типов со знаком и без знака
1>d:\c++\2-semestr\example_111\example_111\func.cpp(144): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(145): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(148): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(152): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(153): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(156): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(157): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(179): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(180): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(158): warning C4101: l: неиспользованная локальная переменная
1>d:\c++\2-semestr\example_111\example_111\func.cpp(191): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(192): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(195): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(199): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(221): warning C4018: <=: несоответствие типов со знаком и без знака
1>d:\c++\2-semestr\example_111\example_111\func.cpp(223): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(224): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(227): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(228): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(229): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(232): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(234): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(258): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(259): warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\conio.h(131): см. объявление "getch"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(238): warning C4101: l: неиспользованная локальная переменная
1>d:\c++\2-semestr\example_111\example_111\func.cpp(265): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(218): см. объявление "fopen"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(273): warning C4018: <=: несоответствие типов со знаком и без знака
1>d:\c++\2-semestr\example_111\example_111\func.cpp(276): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(277): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(280): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(281): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(282): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(285): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(293): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(218): см. объявление "fopen"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(302): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(218): см. объявление "fopen"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(304): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\stdio.h(237): см. объявление "fscanf"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(306): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(307): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(310): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(313): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(314): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>d:\c++\2-semestr\example_111\example_111\func.cpp(317): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 11.0\vc\include\string.h(110): см. объявление "strcpy"
1>  Создание кода...
1>d:\c++\2-semestr\example_111\example_111\main.cpp(37): warning C4700: использована неинициализированная локальная переменная "name"
1>main.obj : error LNK2005: "void __cdecl add(char *)" (?add@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl delet(char *)" (?delet@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl edit(char *)" (?edit@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl find(char *)" (?find@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl load(char *)" (?load@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl open(char *)" (?open@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl replace(int)" (?replace@@YAXH@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl save(char *)" (?save@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl sort1(void)" (?sort1@@YAXXZ) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl sort2(void)" (?sort2@@YAXXZ) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl sort3(void)" (?sort3@@YAXXZ) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl sort4(void)" (?sort4@@YAXXZ) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl sort5(void)" (?sort5@@YAXXZ) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl sort(char *)" (?sort@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "void __cdecl view(char *)" (?view@@YAXPAD@Z) уже определен в func.obj
1>main.obj : error LNK2005: "int fs" (?fs@@3HA) уже определен в func.obj
1>main.obj : error LNK2005: "struct AVIA * list" (?list@@3PAUAVIA@@A) уже определен в func.obj
1>main.obj : error LNK2005: "struct AVIA tmp" (?tmp@@3UAVIA@@A) уже определен в func.obj
1>main.obj : error LNK2005: "struct AVIA * fin" (?fin@@3PAUAVIA@@A) уже определен в func.obj
1>main.obj : error LNK2019: ссылка на неразрешенный внешний символ "void __cdecl create(void)" (?create@@YAXXZ) в функции _main
1>D:\c++\2-semestr\Example_111\Debug\Example_111.exe : fatal error LNK1120: неразрешенных внешних элементов: 1
========== Построение: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ==========
Описание некот. переменных
ch-хранит текущий пункт меню;
err-код ошибки;
list[]-массив, в котором хранится БД;
fin[]-массив, хранящий результаты поиска;
tmp-временное хранилище записи БД;
fio-Ф.И.О.;
route-маршрут;
seat-количество свободных мест;
date-дата вылета;
flight-номер рейса.

Прикрепил, также, сам проект к теме
Вложения
Тип файла: rar Example_111.rar (1.65 Мб, 4 просмотров)
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
16.07.2013, 21:45
Ответы с готовыми решениями:

Подскажите, как исправить ошибку, пожалуйста
Код учебный. Задали исправить ошибки. Меня смущает вот этот кусок. double Sum4(double (*A),int n) { int s=0; ...

Вот код, подскажите как исправить ошибку, пожалуйста???
Вот вибивает такие ошибки: 1&gt;c:\users\user\desktop\ооп 6\ооп 6\ооп6.cpp(40) : error C2661: D3:: D3: нет перегруженной функции,...

Как исправить ошибку.подскажите пожалуйста. прога ломается на 79 строке
#include &lt;iostream&gt; #include &lt;cstdlib&gt; #include &lt;ctime&gt; using namespace std; int chisla(int a,int b) { ...

1
121 / 109 / 29
Регистрация: 18.12.2010
Сообщений: 378
17.07.2013, 09:47
Программист более читатель, чем писатель. (с) Кто-то

Немного почитал Вашу программу, вот лишь небольшой список того, чего я нашёл:
  • Пересоберите проект. Вы подключаете сразу .cpp файл, это не есть хорошо; лучше создайте заголовочный файл func.h примерно такого содержания
    C++
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    
    #include <iostream>
    #include <string.h>
    #include <conio.h>
     
    void bopen(char*base);
    void load(char *base);
    void save(char *base);
    void add(char *base);
    void view(char *base);
    void edit(char *base);
    void delet(char *base);
    void find(char *base);
    void sort(char *base);
    void sort1();
    void sort2();
    void sort3();
    void sort4();
    void sort5();
    void replace(int x);
    а в cpp оставьте
    C++
    1
    2
    3
    4
    5
    
    #include "func.h"
     
    using namespace std;
     
    extern char ch; // и далее все остальное
    В таком случае в самом cpp достаточно будет оставить
    C++
    1
    2
    
    #include "func.h"
    using namespace std;
    и все, зачем столько инклудов? (если вы, конечно, дальше не будете развивать проект)
  • При определении void replace(int x) у Вас было void replace(int)
  • У вас в main.cpp фигурирует заголовок некой функции void create(), у которой нет определения, хотя она вызывалась 1 раз в main. Вы её хоть напишите для приличия
  • Вы используете некую функцию open во многих местах программы, я так понимаю, вы хотите вызвать функцию, которую вы написали сами в func.cpp. Но (не знаю, зачем) вы подключили #include<io.h> в main.cpp, в котором тоже определена функция open, только с другим параметром. Либо убирайте io, либо переименуйте open
  • Китайский код:
    C++
    1
    
    while((ch!='1')&&(ch!='2')&&(ch!='3')&&(ch!='4')&&(ch!='5')&&(ch!='6')&&(ch!='7'));
    Не проще ли:
    C++
    1
    
    while (ch<'1' || ch > '7')
  • В функциях сортировки Вы случайно... не пузырьком ли сортируете, сударь? А если у вас БД будет на 10 000 записей? Поищите что-нибудь побыстрее

    В остальном не пытался разобраться. Мой вам совет - пишите комментарии в коде! Поверьте, это значительно облегчит отладку. Удачи!
3
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
17.07.2013, 09:47
Помогаю со студенческими работами здесь

Подскажите пожалуйста где исправить ошибку в программе сделанную в C++
Привет всем! У меня случилась одна не большая проблема. Дело в том, что мне задали написать программу: Дан одномерный массив MAS. Найти...

Подскажите как исправить ошибку. прога ломается на 79 строке. а ошибку не выдает
#include &lt;iostream&gt; #include &lt;cstdlib&gt; #include &lt;ctime&gt; using namespace std; int chisla(int a,int b) { ...

Подскажите, как исправить ошибку
void crop(char *str) { while (*str) { char i = 'q'; if (*str == ' ') { *str = i; //ошибка здесь cout &lt;&lt; str &lt;&lt;...

Подскажите как исправить ошибку
Мужики, программы пишу на Dev-C++ И при любой программе выдаёт ошибку,как исправить это?

Подскажите как исправить ошибку
Здравствуйте! Подскажите, как исправить ошибку при выполнении программы: #include &lt;iostream&gt; #include &lt;stdarg.h&gt; using...


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

Или воспользуйтесь поиском по форуму:
2
Ответ Создать тему
Новые блоги и статьи
PhpStorm 2025.3: WSL Terminal всегда стартует в ~
and_y87 14.12.2025
PhpStorm 2025. 3: WSL Terminal всегда стартует в ~ (home), игнорируя директорию проекта Симптом: После обновления до PhpStorm 2025. 3 встроенный терминал WSL открывается в домашней директории. . .
Как объединить две одинаковые БД Access с разными данными
VikBal 11.12.2025
Помогите пожалуйста !! Как объединить 2 одинаковые БД Access с разными данными.
Новый ноутбук
volvo 07.12.2025
Всем привет. По скидке в "черную пятницу" взял себе новый ноутбук Lenovo ThinkBook 16 G7 на Амазоне: Ryzen 5 7533HS 64 Gb DDR5 1Tb NVMe 16" Full HD Display Win11 Pro
Музыка, написанная Искусственным Интеллектом
volvo 04.12.2025
Всем привет. Некоторое время назад меня заинтересовало, что уже умеет ИИ в плане написания музыки для песен, и, собственно, исполнения этих самых песен. Стихов у нас много, уже вышли 4 книги, еще 3. . .
От async/await к виртуальным потокам в Python
IndentationError 23.11.2025
Армин Ронахер поставил под сомнение async/ await. Создатель Flask заявляет: цветные функции - провал, виртуальные потоки - решение. Не threading-динозавры, а новое поколение лёгких потоков. Откат?. . .
Поиск "дружественных имён" СОМ портов
Argus19 22.11.2025
Поиск "дружественных имён" СОМ портов На странице: https:/ / norseev. ru/ 2018/ 01/ 04/ comportlist_windows/ нашёл схожую тему. Там приведён код на С++, который показывает только имена СОМ портов, типа,. . .
Сколько Государство потратило денег на меня, обеспечивая инсулином.
Programma_Boinc 20.11.2025
Сколько Государство потратило денег на меня, обеспечивая инсулином. Вот решила сделать интересный приблизительный подсчет, сколько государство потратило на меня денег на покупку инсулинов. . . .
Ломающие изменения в C#.NStar Alpha
Etyuhibosecyu 20.11.2025
Уже можно не только тестировать, но и пользоваться C#. NStar - писать оконные приложения, содержащие надписи, кнопки, текстовые поля и даже изображения, например, моя игра "Три в ряд" написана на этом. . .
Мысли в слух
kumehtar 18.11.2025
Кстати, совсем недавно имел разговор на тему медитаций с людьми. И обнаружил, что они вообще не понимают что такое медитация и зачем она нужна. Самые базовые вещи. Для них это - когда просто люди. . .
Создание Single Page Application на фреймах
krapotkin 16.11.2025
Статья исключительно для начинающих. Подходы оригинальностью не блещут. В век Веб все очень привыкли к дизайну Single-Page-Application . Быстренько разберем подход "на фреймах". Мы делаем одну. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2025, CyberForum.ru