-
Notifications
You must be signed in to change notification settings - Fork 0
/
BAESIX.CPP
2501 lines (2278 loc) · 54.8 KB
/
BAESIX.CPP
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
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//THE BAESIX---THE SOCIAL MEDIA....
#include<iostream.h>
#include<stdlib.h>
#include<DOS.h>
#include<process.h>
#include<conio.h>
#include<fstream.h>
#include<stdio.h>
#include<string.h>
#include<graphics.h>
#include<time.h>
/*==============================================================================
==============================================================================*/
class intr_o
{
public:
void intro();
void graphicintro();
char cpyrgt();
char license();
char acknow();
};
intr_o N;
/*==============================================================================
==============================================================================*/
class outlin_e
{
public:
char SL;
void ASK();
void license();
};
class use_r
{
private:
char name[30],gender;
char pass1[30],pass2[30];
char email[50];
char city[30],state[30],country[30],hometown[30];
char rel[10],dob[20],phone[10];
public:
void modify(int);
char* ret_city()
{
return city;
}
char* ret_state()
{
return state;
}
char* ret_country()
{
return country;
}
char* ret_hometown()
{
return hometown;
}
char* ret_user()
{
return email;
}
char* ret_pass()
{
return pass2;
}
char* ret_name()
{
return name;
}
char* ret_rel()
{
return rel;
}
char* ret_phone()
{
return phone;
}
void newdat();
void d_lay();
void e_ror();
void D_el();
void wai_t();
void inbox();
};
class idea_share
{
private:
char story[30],date[9],typer[30];
public:
idea_share()
{
strcpy(story,"Sorry. No Stories Available!");
}
void Enter();
char* Show()
{
return(story);
}
char* ret_date()
{
return(date);
}
char* ret_type()
{
return(typer);
}
};
class hoo_k
{
private:
int ans;
char ch1;
void show1();
public:
void work();
void logout(char);
char* oldloc();
};
class C_msg
{
public:
int nomb;
char To[30],from[30],cont[50],check;
void message();
void clearnotify();
void notifyme();
C_msg()
{
nomb=0;
check='N';
}
char ret_check()
{
return check;
}
char* ret_to()
{
return To;
}
};
outlin_e A; // OBJECT DECLARED
use_r B; // OBJECT DECLARED
hoo_k C; // OBJECT DECLARED
C_msg M; // OBJECT DECLARED
idea_share I; // OBJECT DECLARED
/*==============================================================================
==============================================================================*/
char label[30],prof;
int c1=0,c2=0,num1,BAESIX;
void login(char*,char*);
void user();
void create();
void del(char);
void online();
union REGS in,out;
int callmouse()
{
in.x.ax=1;
int86(51,&in,&out);
return 1;
}
void logo_ins()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
////////OUTLINE
setcolor(WHITE);
arc(160,220,240,210,100);
line(75,270,57,320);
line(57,320,111,308);
setcolor(GREEN);
arc(160,220,235,215,85);
line(90,270,80,300);
line(80,300,112,290);
////////INNER
setcolor(WHITE);
arc(205,185,170,260,90);
arc(134,178,320,150,20);
arc(195,255,250,120,20);
arc(205,185,185,250,57);
// closegraph();
}
void intr_o::intro()
{
int x,y;
int gd=DETECT, gm;
initgraph(&gd, &gm,"C:\\TURBOC3\\BGI");
callmouse();
x=getmaxx()/2;
y=getmaxx()/2;
settextstyle(TRIPLEX_FONT,0,3);
setbkcolor(0);
setcolor(rand());
logo_ins();
settextstyle(TRIPLEX_FONT,0,6);
setbkcolor(rand());
setcolor(2);
outtextxy(x+15,y-110,"BAESIX");
settextstyle(SMALL_FONT,0,5);
outtextxy(x-25,y-120,"SOCIAL MEDIA REIMAGINED....");
settextstyle(8,0,1);
settextstyle(SMALL_FONT,0,6);
setcolor(4);
settextjustify(x,y);
outtextxy(x-300,y+120,"A");
delay(200);
outtextxy(x-280,y+120," C++");
delay(200);
outtextxy(x-235,y+120," PROJECT");
delay(200);
outtextxy(x-135,y+120," DONE");
delay(200);
outtextxy(x-70,y+120," BY:");
delay(200);
outtextxy(x-30,y+120," ABHIJITH, ");
delay(200);
outtextxy(x+80,y+120,"ANAGHA & ");
delay(200);
outtextxy(x+140,y+120," FAHIM");
delay(200);
getch();
closegraph();
}
void intr_o::graphicintro()
{
int x,y,i,j;
int gd=DETECT, gm;
initgraph(&gd, &gm,"C:\\TURBOC3\\BGI");
cleardevice();
callmouse();
x=getmaxx()/2;
y=getmaxy()/2;
settextstyle(TRIPLEX_FONT,HORIZ_DIR,3);
setbkcolor(rand());
setcolor(4);
int n=150;
for(i=0;i<30;i++)
{
for(j=50;j<100;j++)
{
setcolor(2);
settextstyle(SMALL_FONT,0, 10);
outtextxy(x,y,"Loading...");
settextstyle(SMALL_FONT,0, 5);
outtextxy(x+5,y+5,"Please Wait... ");
circle(x,y,j);
circle(x,y,n);
n--;
cleardevice();
}
}
closegraph();
}
char intr_o::cpyrgt()
{ //restorecrtmode();
clrscr();
int gd=DETECT, gm;
initgraph(&gd, &gm,"C:\\TURBOC3\\BGI");
char accept;
callmouse();
cout<<"\n\t\t\t DISCLAIMER";
cout<<"\n\t\t\t -_-_-_-_-_";
cout<<"\n\n BAESIX Is a service that offers free networking with no guarantees";
cout<<"\n for uptime or performance and reserves the right to terminate accounts";
cout<<"\n at any time for no specific reason. The Owners and operators of BAESIX";
cout<<"\n do not verify the information posted on the website and assume no liability";
cout<<"\n for the accuracy of such information.";
cout<<"\n BAESIX reserves the right to judge what is acceptable use of the website ";
cout<<"\n may be changed or deleted to ensure acceptable use without any liability";
cout<<"\n assumed for such actions.";
cout<<"\n By using this site your certify that:\n";
cout<<"\n \4You are at least 18 years of age.\n";
cout<<"\n \4You are using this site for personal reason and not for commercial gain.\n";
cout<<"\n \4You are using this site only when permitted by law.\n";
cout<<"\n This release of liability shall be contrued briadly to provide";
cout<<"\n a release and waiver to the maximum extent permissible under applicable";
cout<<"\n law. \n\n I CERTIFY THAT I HAVE READ THIS DOCUMENT AND I FULLY UNDERSTAND";
cout<<"\n ITS CONTENT. I AM AWARE THAT THIS IS A RELEASE OF LIABILITY AND A";
cout<<"\n CONTRACT AND I AGREE TO IT OF MY OWN FREE WILL.";
cout<<"\n\n\tAccept & Proceed?(Y/N): ";
cin>>accept;
closegraph();
return(accept);
}
char intr_o::license()
{
clrscr();
char agree1;
int gd=DETECT, gm;
initgraph(&gd, &gm,"C:\\TURBOC3\\BGI");
callmouse();
cout<<"\n\t\t\t LICENSE- THE BAESIX";
cout<<"\n\t\t\t -_-_-_-_-_-_-_-_-_-_";
cout<<"\n\nCopyright@ 2018-2019 \2The Codewriter Team.\2";
cout<<"\nEnd User Licence Agreement for The BAESIX. Please read carefully.:";
cout<<"\n\nBy using this website (or any site based on this site) you shall be ";
cout<<"\ndeemed to have accepted the terms and conditions set out below.";
cout<<"\n\n1. The BAESIX is making this website freely available on the basis that it is ";
cout<<" accepted as found and that the user checks its fitness for purpose prior to ";
cout<<" use. ";
cout<<"\n\n2.This website is provided as/is, without any express or implied warranties ";
cout<<"\n whatsoever.";
cout<<"\n\n3.In no event will the authors, partners or contributors be held liable for any ";
cout<<" damages, ";
cout<<"claims or other liabilities direct or indirect, arising from the ";
cout<<"\n use/access of this website. ";
cout<<"\n\nThe BAESIX will from time to time update the Site. However, The BAESIX ";
cout<<"\naccepts no obligation ";
cout<<"to provide any support to users.";
cout<<"\n\n\t\t Read Our Full License T&C?(Y/N): ";
cin>>agree1;
getch();
closegraph();
return(agree1);
}
char intr_o::acknow()
{
clrscr();
char accept;
int gd=DETECT, gm;
initgraph(&gd, &gm,"C:\\TURBOC3\\BGI");
callmouse();
cout<<"\n\t\t\t ACKNOWLEDGEMENT";
cout<<"\n\t\t\t -_-_-_-_-_-_-_-_";
cout<<"\n\nThe \"The BAESIX\" team Gratefully acknowledges JYOTHI TEACHER for her Inspiration";
cout<<"and LEKSHMI TEACHER for instilling the seeds of C++ in us!";
cout<<"\nThe team also acknowledges the whole CLASS XII for supporting us to make this a huge SUCCESS!";
cout<<"\n\n\tAccept & Proceed?(Y/N): ";
cin>>accept;
closegraph();
return(accept);
}
void clearslate_protocol()
{
clrscr();
int i;
char ce=178,ch;
clrscr();
callmouse();
int gd5=DETECT,gm5;
initgraph(&gd5,&gm5,"C:\\TURBOC3\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,100,629,100); // horizontal line
line(10,460,629,460); // horizontal line
line(429,130,629,130); // horizontal line
line(10,20,10,460); // vertical line
line(100,20,100,100); // vertical line
line(429,20,429,460); // vertical line
line(629,20,629,460); // vertical line
gotoxy(60,8);
cout<<"FRIENDS ONLINE";
// online();
//HELP gotoxy(9,12);
line(30,60,50,35); //HOME
line(50,35,70,60); //HOME
line(30,60,70,60); //HOME
line(30,60,30,90); //HOME
line(70,60,70,90); //HOME
line(30,90,70,90); //HOME
line(45,90,45,75); //DOORHOME
line(55,90,55,75); //DOORHOME
line(45,75,55,75); //DOORHOME
circle(580,50,10); //PROFILE
line(575,58,560,80); //PROFILE
line(585,58,600,80); //PROFILE
circle(580,60,30); //PROFILE
gotoxy(10,15);
cout<<"ARE YOU SURE TO EXIT ? : ";
cin>>ch;
closegraph();
if(ch=='Y')
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,460,629,460); // horizontal line
line(10,100,629,100); // horizontal line
line(10,20,10,460); // vertical line
line(629,20,629,460); // vertical line
circle(300,200,30); //PROFILE
line(278,220,230,300); //PROFILE
line(322,222,370,300); //PROFILE
circle(300,230,100); //PROFILE
gotoxy(10,23);
callmouse();
cout<<"ANY UNSAVED DATA WILL BE LOST!!!";
gotoxy(6,24);
for(i=0;i<70;i++)
{
delay(35);
setcolor(4);
cout<<ce;
}
closegraph();
clrscr();
int gd1=DETECT,gm1;
initgraph(&gd1,&gm1,"C:\\TURBOC3\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,460,629,460); // horizontal line
line(10,100,629,100); // horizontal line
line(10,20,10,460); // vertical line
line(629,20,629,460); // vertical line
circle(300,200,30); //PROFILE
line(278,220,230,300); //PROFILE
line(322,222,370,300); //PROFILE
circle(300,230,100); //PROFILE
gotoxy(20,23);
cout<<"EXITTING ";
for(int i=0;i<20;i++)
{
delay(100);
cout<<'\4' ;
}
gotoxy(20,23);
cout<<"THANK YOU!!";
delay(2000);
exit(0);
closegraph();
}
else
{
B.d_lay();
clrscr();
A.ASK();
}
getch();
}
char* find_name()
{
char a[30];
fstream N;
N.open("create.dat",ios::in|ios::binary);
while(!N.eof())
{
N.read((char*)&B,sizeof(B));
if(strcmp(label,B.ret_user())==0)
{
strcpy(a,B.ret_name());
}
}
N.close();
return(a);
}
void idea_share::Enter()
{
fstream N;
N.open("idea.dat",ios::in|ios::out|ios::binary);
_strdate(date);
strcpy(typer,find_name());
gotoxy(5,9);
cout<<"ENTER YOUR IDEA TO BE SHARED : ";
settextstyle(0,0,0);
outtextxy(40,150,"(max 30 characters)");
gets(story);
N.write((char*)&I,sizeof(I));gets(story);
N.close();
}
void ideatime()
{
char datebuf[9];
fstream N;
N.open("idea.dat",ios::in|ios::out|ios::binary);
while(!N.eof())
{
char k[30];
N.read((char*)&I,sizeof(I));
gotoxy(5,11);
strcpy(k,I.Show());
if(strcmp(k,"Sorry. No Stories Available!")==0)
{
I.Enter();
B.inbox();
}
else
{
_strdate(datebuf);
if(strcmp(datebuf,I.ret_date())==0)
{
gotoxy(7,9);
cout<<"STORY BY "<<I.ret_type()<<" ( "<<I.ret_date()<<" )";
gotoxy(7,10);
cout<<"-----------------";
// gotoxy(25,9);
// cout<<"CONTENT";
gotoxy(9,13);
puts(k);
/* gotoxy(25,11);
puts(k);
puts(I.ret_date()); */
}
else
{
// remove("idea.dat");
I.Enter();
B.inbox();
}
}
}
N.close();
getch();
}
void outlin_e::license()
{
cout<<"\t\tCopyright \2æ2018-2019æ\2 The Codewriter Team.";
cout<<"\n\tEnd User Licence Agreement for The BAESIX. Please read carefully.;";
cout<<"\n\tBy using this website (or any site based on this site) you shall be deemed";
cout<<"to have accepted the terms and conditions set out below.";
cout<<"\n\tThe BAESIX is making this website freely available on the basis that";
cout<<"it is accepted as found and that the user checks its fitness for purpose prior to use.";
cout<<"\n\tThis website is provided as-is', without any express or implied warranties whatsoever.";
cout<<"In no event will the authors, partners or contributors be held liable for any damages,";
cout<<"claims or other liabilities direct or indirect, arising from the use/access of this website.";
cout<<"\n\tThe BAESIX will from time to time update the Site. However, The BAESIX accepts no obligation";
cout<<"to provide any support to users.";
}
void C_msg::message()
{
clrscr();
int gd3=DETECT,gm3;
initgraph(&gd3,&gm3,"C:\\TURBOC3\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,100,629,100); // horizontal line
line(10,460,629,460); // horizontal line
line(429,130,629,130); // horizontal line
line(10,20,10,460); // vertical line
line(100,20,100,100); // vertical line
line(429,20,429,460); // vertical line
line(629,20,629,460); // vertical line
gotoxy(60,8);
cout<<"FRIENDS ONLINE";
online();
//ONLINE gotoxy(60,8);
//HELP gotoxy(9,12);
line(30,60,50,35); //HOME
line(50,35,70,60); //HOME
line(30,60,70,60); //HOME
line(30,60,30,90); //HOME
line(70,60,70,90); //HOME
line(30,90,70,90); //HOME
line(45,90,45,75); //DOORHOME
line(55,90,55,75); //DOORHOME
line(45,75,55,75); //DOORHOME
circle(580,50,10); //PROFILE
line(575,58,560,80); //PROFILE
line(585,58,600,80); //PROFILE
circle(580,60,30); //PROFILE
fstream N;
N.open("compose.dat",ios::out|ios::in|ios::app|ios::binary);
nomb++;
callmouse();
gotoxy(9,12);
cout<<"COMPOSE TO : ";
gets(To);
gotoxy(9,14);
cout<<"TYPE YOUR MESSAGE : ";
gets(cont);
strcpy(from,find_name());
N.write((char*)&M,sizeof(M));
N.close();
B.inbox();
C.work();
closegraph();
}
void C_notify()
{
callmouse();
fstream N;
N.open("compose.dat",ios::in|ios::binary);
while(!N.eof())
{
N.read((char*)&M,sizeof(M));
if(strcmp(M.ret_to(),find_name())==0)
{
c1=c1+1;
if(M.ret_check()=='N')
c2=c2+1;
}
}
N.close();
}
void C_msg::clearnotify()
{
callmouse();
fstream N;
N.open("compose.dat",ios::out|ios::app|ios::binary);
while(!N.eof())
{
N.read((char*)&M,sizeof(M));
if(strcmp(ret_to(),find_name())==0)
{
if(ret_check()=='N')
{
check='Y';
N.write((char*)&M,sizeof(M));
}
}
}
B.d_lay();
C.work();
N.close();
}
void C_msg::notifyme()
{
int i=0,y=9;
callmouse();
clrscr();
int gd3=DETECT,gm3;
initgraph(&gd3,&gm3,"C:\\TC\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,100,629,100); // horizontal line
line(10,460,629,460); // horizontal line
line(429,130,629,130); // horizontal line
line(10,20,10,460); // vertical line
line(100,20,100,100); // vertical line
line(429,20,429,460); // vertical line
line(629,20,629,460); // vertical line
gotoxy(60,8);
cout<<"FRIENDS ONLINE";
online();
//ONLINE gotoxy(60,8);
//HELP gotoxy(9,12);
line(30,60,50,35); //HOME
line(50,35,70,60); //HOME
line(30,60,70,60); //HOME
line(30,60,30,90); //HOME
line(70,60,70,90); //HOME
line(30,90,70,90); //HOME
line(45,90,45,75); //DOORHOME
line(55,90,55,75); //DOORHOME
line(45,75,55,75); //DOORHOME
circle(580,50,10); //PROFILE
line(575,58,560,80); //PROFILE
line(585,58,600,80); //PROFILE
circle(580,60,30); //PROFILE
fstream N;
N.open("compose.dat",ios::in|ios::binary);
gotoxy(7,y);
cout<<"FROM";
gotoxy(25,y);
cout<<"CONTENT";
for(i=1;i<=c2;i++)
{
// do
// {
// i++;
y=y+2;
gotoxy(3,y);
while(!N.eof())
{
N.read((char*)&M,sizeof(M));
if(strcmp(ret_to(),find_name())==0)
{
cout<<i<<".";
gotoxy(7,y);
puts(from);
gotoxy(25,y);
puts(cont);
// else
// cout<<"ERROR";
//cout<<"\n"; //use for loop instead of puts(next line);
break;
}
}
}//while(c2==i);
getch();
C.work();
closegraph();
}
void online()
{
callmouse();
ifstream AN;
BAESIX=0;
AN.open("create.dat",ios::in|ios::binary);
while(!AN.eof())
{
AN.read((char*)&B,sizeof(B));
BAESIX++;
}
AN.close();
// BAESIX-=2;
ifstream N;
N.open("create.dat",ios::in|ios::binary);
int i=10,t=0;
char a[30],b[30];
strcpy(b,find_name());
while(!N.eof())
{
N.read((char*)&B,sizeof(B));
t++;
if(t==BAESIX)
break;
gotoxy(60,i);
strcpy(a,B.ret_name());
if(strcmp(b,a)!=0)
{ puts(a);
i++;
}
/* strcpy(an,find_name());
if(strcmp(an,B.ret_name())!=0)
{
if(strcmp(an,B.ret_name())==0)
continue;
strcpy(a,B.ret_name());
puts(a);
} */
}
N.close();
// N.open("create.dat",ios::in|ios::binary);
// while(!N.eof())
// {
// N.read((char*)&B,sizeof(B));
// if(strcmp(b,B.ret_name())==0)
// continue;
gotoxy(56,5);
puts(b);
// }
// N.close();
}
void use_r::e_ror()
{
clrscr();
int i;
char ce=178;
callmouse();
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,460,629,460); // horizontal line
line(10,100,629,100); // horizontal line
line(10,20,10,460); // vertical line
line(629,20,629,460); // vertical line
circle(300,200,30); //PROFILE
line(278,220,230,300); //PROFILE
line(322,222,370,300); //PROFILE
circle(300,230,100); //PROFILE
gotoxy(10,23);
cout<<"!!ERROR 404";
gotoxy(6,24);
for(i=0;i<70;i++)
{
delay(35);
cout<<ce;
}
closegraph();
A.ASK();
}
void use_r::D_el()
{
clrscr();
int i;
char ce=178;
callmouse();
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,460,629,460); // horizontal line
line(10,100,629,100); // horizontal line
line(10,20,10,460); // vertical line
line(629,20,629,460); // vertical line
circle(300,200,30); //PROFILE
line(278,220,230,300); //PROFILE
line(322,222,370,300); //PROFILE
circle(300,230,100); //PROFILE
gotoxy(10,23);
cout<<"!!DELETING YOUR ACCOUNT..";
gotoxy(6,24);
for(i=0;i<70;i++)
{
delay(35);
cout<<ce;
}
closegraph();
A.ASK();
}
void use_r::d_lay()
{
int i;
char ce=178;
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,460,629,460); // horizontal line
line(10,100,629,100); // horizontal line
line(10,20,10,460); // vertical line
line(629,20,629,460); // vertical line
circle(300,200,30); //PROFILE
line(278,220,230,300); //PROFILE
line(322,222,370,300); //PROFILE
circle(300,230,100); //PROFILE
gotoxy(10,23);
callmouse();
cout<<"LOADING...Please Wait..";
gotoxy(6,24);
for(i=0;i<70;i++)
{
delay(35);
setcolor(4);
cout<<ce;
}
closegraph();
}
void use_r::wai_t()
{
int i;
char ce=178;
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,460,629,460); // horizontal line
line(10,100,629,100); // horizontal line
line(10,20,10,460); // vertical line
line(629,20,629,460); // vertical line
circle(300,200,30); //PROFILE
line(278,220,230,300); //PROFILE
line(322,222,370,300); //PROFILE
circle(300,230,100); //PROFILE
gotoxy(10,23);
callmouse();
cout<<"MAKING CHANGES TO YOUR ACCOUNT...Please Wait..";
gotoxy(6,24);
for(i=0;i<70;i++)
{
delay(35);
setcolor(4);
cout<<ce;
}
closegraph();
A.ASK();
}
void use_r::inbox()
{
int i;
char ce=178;
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
circle(15,10,5); //DES
circle(30,10,5); //DES
circle(45,10,5); //DES
setcolor(GREEN);
settextstyle(0,0,4);
outtextxy(160,60,"BAESIX");
line(10,20,629,20); // horizontal line
line(10,460,629,460); // horizontal line
line(10,100,629,100); // horizontal line
line(10,20,10,460); // vertical line
line(629,20,629,460); // vertical line
circle(300,200,30); //PROFILE
line(278,220,230,300); //PROFILE
line(322,222,370,300); //PROFILE
circle(300,230,100); //PROFILE
gotoxy(10,23);
callmouse();
cout<<"SENTING YOUR MESSAGE...Please Wait..";
gotoxy(6,24);
for(i=0;i<70;i++)
{
delay(35);
setcolor(4);
cout<<ce;
}
closegraph();
C.work();
}
void outlin_e::ASK()
{