Club Management System In C++ With Source Code
The Club Management System In C++ With Source Code is developed using C++ programming language. This project is capable of maintaining and handling a list of all participants.
This simple club management system in c++ open source was built in a console windowed program, and the device is secured by a unique encrypting password, which you must enter.
After logging in, the user may do a variety of things in the system, including adding new members, viewing all current member details, updating current member information, deleting existing members, and creating new events.
Through using this club management system project in c++ , you will ensure the security of all member information while also ensuring effective record management in your current club.
These are the following features of the system
- Add New Members Menu
- Delete Members Menu
- Search Members Menu
- View Members Menu
- Events Menu
- Edit Members Information Menu
Password: admin
Anyway if you want level up your knowledge in programming especially C/C++ Programming Language, try this new article I’ve made for you Best C Projects with Source Code for Beginners Free Download 2020.
To run this Club Management System In C++ Free Download make sure that you have a Code Blocks or any platform of C++ installed in your computer.
Club Management System In C++ With Source Code Steps On How To Run The Project
Time needed: 5 minutes.
These are the steps on how to run Club Management System In C++ With Source Code
- Step 1: Download
First, download the source code given below.
- Step 2: Extract file.
Second, after you finished download the source code, extract the zip file.
- Step 3: Open CodeBlocks
Third, open “CodeBlocks IDE”.
- Step 4: Open Project.
Fourth, open file tab and Open File after that open folder ClubSystem then click the “Club Management System.cpp“.
- Step 5: Run Project
Fifth, run the project.
- Step 6: The actual code.
You are free to copy the given source code below or download the downloadable source code given.
The Code Given Below is the Actual Code of System
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 |
#include<windows.h>m #include<stdio.h> #include<conio.h> #include <stdlib.h> #include<string.h> #include<ctype.h> #include<dos.h> #include<time.h> void password(); void mainmenu(void); void addmember(void); void deletemember(void); void searchmember(void); void viewmember(void); void editmember(void); void closeapp(void); void returnfunc(void); void event(void); int t(void); void addevent(void); void vieweevent(void); void deleteevent(void); ///list of global files FILE *fp,*ft,*fs; COORD coord = {0, 0}; int fm; void gotoxy (int x, int y) { coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } struct member{ int ID; char name[20]; char add[20]; char dept[20]; int Phone_no; int no; char title[20]; char z[100]; char date[20]; }; struct member stu; int main(){ password(); getch(); return 0; } void mainmenu(){ int choice; system("cls"); gotoxy(5,2); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,3); printf("|====== CLUB MANAGEMENT SYSTEM ======|"); gotoxy(5,4); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,5); printf("------------- MAIN MENU --------------"); gotoxy(5,7);printf("1. Add Members\n"); gotoxy(5,9);printf("2. Delete Members\n"); gotoxy(5,11);printf("3. Search Members\n"); gotoxy(5,13);printf("4. View Members\n"); gotoxy(5,15);printf("5. Event\n"); gotoxy(5,17);printf("6. Edit Members Information\n"); gotoxy(5,19);printf("7. Close application\n"); gotoxy(5,20);printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,21);t(); gotoxy(5,24); printf("Enter Your Choice: "); switch(getch()){ case '1': addmember(); break; case '2': deletemember(); break; case '3': searchmember(); break; case '4': viewmember(); break; case '5': event(); break; case'6': editmember(); case '7':{ system("cls"); gotoxy(16,3); printf("\t CLUB Management System\n"); gotoxy(16,5); printf("\n\n*****************************************************************************"); exit(0); } default:{ gotoxy(20,22);printf("Wrong!!Correct Option"); if (getch()) mainmenu(); } } } void addmember(void){ system("cls"); gotoxy(5,2); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,3); printf("|====== CLUB MANAGEMENT SYSTEM ======|"); gotoxy(5,4); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,5); printf("----------- ADD NEW MEMBER -----------"); int print = 5; FILE *fp; fp = fopen("record_nxt.txt","ab+"); // SetColor(45); if(fp == NULL){ MessageBox(0,"Error in Opening file\nMake sure your file is not write protected","Warning",0); } else { ///fflush(stdin); gotoxy(print,7);printf("Member ID: ");scanf("%d",&stu.ID); //here you can confirms the ID fflush(stdin); gotoxy(print,9);printf("Name: ");gets(stu.name); gotoxy(print,11);printf("Address: ");gets(stu.add); gotoxy(print,13);printf("Department name: ");gets(stu.dept); gotoxy(print,15);printf("Phone Number: ");scanf("%d",&stu.Phone_no); ///gotoxy(print,20);printf("Phone Number: ");scanf("%d",&stu.phone_no); fwrite(&stu, sizeof(stu), 1, fp); } fclose(fp); gotoxy(5,17); printf("The record is sucessfully added"); gotoxy(5,18);printf("Save any more Y/N"); if(getch()=='n') mainmenu(); else system("cls"); addmember(); } void deletemember( ){ system("cls"); int d; char another='y'; while(another=='y') { system("cls"); gotoxy(5,2); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,3); printf("|====== CLUB MANAGEMENT SYSTEM ======|"); gotoxy(5,4); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,5); printf("----------- DELETE MEMBER ------------"); gotoxy(5,7); printf("Enter the Member ID:"); scanf("%d",&d); fp=fopen("record_nxt.txt","rb+"); rewind(fp); while(fread(&stu,sizeof(stu),1,fp)==1) { if(stu.ID==d) { gotoxy(5,9); printf("Member name is %s",stu.name); gotoxy(5,10); fm='Z'; } else{ fm='M'; } } if(fm!='Z') { gotoxy(5,10); printf("No record is found in LIST"); mainmenu(); } if(fm=='Z' ) { gotoxy(5,11); printf("The Member is available"); gotoxy(5,12); printf("Do you want to delete it?(Y/N):"); if(getch()=='y') { ft=fopen("test.txt","wb+"); rewind(fp); while(fread(&stu,sizeof(stu),1,fp)==1) { if(stu.ID!=d) { fwrite(&stu,sizeof(stu),1,ft); } } fclose(ft); fclose(fp); remove("record_nxt.txt"); rename("test.txt","record_nxt.txt"); fp=fopen("record_nxt.txt","rb+"); if(fm=='Z') { gotoxy(5,13); printf("The record is sucessfully deleted"); gotoxy(5,14); printf("Delete another record?(Y/N)"); } } else mainmenu(); fflush(stdin); another=getch(); } } gotoxy(5,15); mainmenu(); ///returnfunc(); } void searchmember(void){ system("cls"); int s; gotoxy(5,2); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,3); printf("|====== CLUB MANAGEMENT SYSTEM ======|"); gotoxy(5,4); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,5); printf("------------ SEARCH MEMBER -----------"); gotoxy(5,7); printf("Enter the Member ID to search:"); scanf("%d",&s); fp=fopen("record_nxt.txt","rb+"); rewind(fp); while(fread(&stu,sizeof(stu),1,fp)==1) { if(stu.ID==s) { gotoxy(5,9); printf("The Member is available"); gotoxy(5,11); printf("ID: %d",stu.ID); gotoxy(5,12); printf("Name: %s",stu.name); gotoxy(5,13); printf("Address: %s",stu.add); gotoxy(5,14); printf("Department name: %s",stu.dept); gotoxy(5,15); printf("Phone No: %d",stu.Phone_no); fm='Z'; } } if(fm!='Z') { gotoxy(5,12); printf("No record is found in LIST"); if(getch()) mainmenu(); } { gotoxy(5,11); printf(""); fclose(fp); returnfunc(); getch(); }} void viewmember(void){ system("cls"); FILE *fp; int i=0,j; system("cls"); gotoxy(5,2); printf("\t\t\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,3); printf("\t\t|====== CLUB MANAGEMENT SYSTEM ======|"); gotoxy(5,4); printf("\t\t\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,5); printf("\t\t------------ MEMBER LIST -------------"); gotoxy(2,7); printf(" MEM_ID MEMBER NAME ADDRESS DEPARTMENT PHONE_NO "); j=9; fp=fopen("record_nxt.txt","rb"); while(fread(&stu,sizeof(stu),1,fp)==1) { gotoxy(3,j); printf("%d",stu.ID); gotoxy(14,j); printf("%s",stu.name); gotoxy(28,j); printf("%s",stu.add); gotoxy(40,j); printf("%s",stu.dept); gotoxy(55,j); printf("%d",stu.Phone_no); gotoxy(69,j); printf("\n\n"); j++; i=i+1; } gotoxy(3,25); printf("Total Members =%d",i); fclose(fp); gotoxy(35,25); returnfunc(); getch(); } void event(void){ system("cls"); int i; gotoxy(20,3); printf("\xcd\xcd\xcd\xcd\xcd\xcd EVENT MENU \xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(20,5); printf("1. Add Event "); gotoxy(20,7); printf("2. View Event"); gotoxy(20,9); printf("3. Delete Event"); gotoxy(20,11); printf("4. Mainmenu"); gotoxy(20,12);printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(20,15);printf("Enter Your Choice"); switch(getch()){ case '1': addevent(); break; case '2': vieweevent(); break; case '3': deleteevent(); case'4': mainmenu(); default:{ gotoxy(20,22);printf("Wrong!!Correct Option\a"); if (getch()) mainmenu(); } } } void addevent(){ system("cls"); gotoxy(26,2); printf("\xcd\xcd\xcd\xcd Add Event \xcd\xcd\xcd"); int print = 25; fp = fopen("record.dat","ab+"); if(fp == NULL){ MessageBox(0,"Error in Opening file\nMake sure your file is not write protected","Warning",0); }else{ fflush(stdin); gotoxy(print,5);printf("event date:");gets(stu.date); gotoxy(print,6);printf("Event name: ");gets(stu.title); gotoxy(print,7);printf("Details: ");gets(stu.z); fwrite(&stu, sizeof(stu), 1, fp); gotoxy(40,12); printf("The record is sucessfully added"); } fclose(fp); gotoxy(40,13);printf("Save any more Y/N"); if (getch()=='n') mainmenu(); else system("cls"); addevent(); gotoxy(25,20); returnfunc(); getch(); } void deleteevent() { system("cls"); char date[20]; fflush(stdin); printf("\n\n\tDELETE event\n\t==========================\n\tEnter the date to delete:"); gets(date); fp=fopen("record.dat","r"); ft=fopen("temp.dat","w"); while(fread(&stu,sizeof(stu),1,fp)!=0) if (stricmp(date,stu.date)!=0) fwrite(&stu,sizeof(stu),1,ft); fclose(fp); fclose(ft); remove("record.dat"); rename("temp.dat","record.dat"); printf("\n\t\tRecord is delete"); gotoxy(25,25); returnfunc(); getch(); } void vieweevent() { system("cls"); int j=5; gotoxy(1,1); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd view events \xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(1,3);printf("Event date event name Details"); fp=fopen("record.dat","rb"); while(fread(&stu,sizeof(stu),1,fp)==1) { gotoxy(1,j); printf("%s",stu.date); gotoxy(18,j); printf("%s",stu.title); gotoxy(46,j); printf("%s",stu.z); j++; } fclose(fp); gotoxy(25,25); returnfunc(); getch(); } void editmember(void){ system("cls"); int s,print=37; gotoxy(15,3); printf("\xcd\xcd\xcd\xcd\xcd\xcd Edit MEMBER info \xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(10,5); printf("Enter the Member ID to edit:"); scanf("%d",&s); fp=fopen("record_nxt.txt","rb+"); while(fread(&stu,sizeof(stu),1,fp)==1) { if(stu.ID==s) { gotoxy(10,7); printf("The Member is available"); fflush(stdin); gotoxy(print,12);printf("Name: ");gets(stu.name); gotoxy(print,14);printf("Address: ");gets(stu.add); gotoxy(print,16);printf("Department name: ");gets(stu.dept); gotoxy(print,18);printf("Phone Number: ");scanf("%d",&stu.Phone_no); gotoxy(print,22);printf("The record is modified"); fseek(fp,-sizeof(stu), SEEK_CUR); fwrite(&stu,sizeof(stu), 1, fp); fm=1; break; } } if(fm!=1) { gotoxy(10,10); printf("No record is found in LIST"); if(getch()) mainmenu(); } fclose(fp); gotoxy(37,22); returnfunc(); getch(); } void returnfunc(void){{ gotoxy(25,25); printf("Press ENTER to return the main menu"); } if(getch()==13) mainmenu(); } int t(void){ time_t t; time(&t); printf("Date and time:%s\n",ctime(&t)); return 0 ; } void fordelay(int j) { int i,k; for(i=0;i<j;i++) k=i; } void password(void){ system("cls"); char pass[10],ch,password[10]="admin"; int i=0; gotoxy(5,2); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,3); printf("|====== CLUB MANAGEMENT SYSTEM ======|"); gotoxy(5,4); printf("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"); gotoxy(5,5); printf("Enter the password:"); while(ch!=13) { ch=getch(); if(ch!=13 && ch!=8){ putch('*'); pass[i] = ch; i++; } } pass[i] = '\0'; if(strcmp(pass,password)==0){ gotoxy(5,8); printf("Password Matched!!"); gotoxy(5,9); printf("Loading "); for(i=0;i<=6;i++) { fordelay(100000000); printf("."); } system("cls"); mainmenu(); } else gotoxy(5,13); printf("Password is invalid!!\a"); printf("\tENTER correct password"); getch(); main(); } |
Run Quick Virus Scan For Safe Download
Run Quick Scan For Safe DownloadDownloadable Source Code
Conclusion
This club system in c++ is only a project made for school requirement purposes only. You can download this source code and modify it to suit your client requirements, since this is a student project it means you cannot really expect 100% functionality from this.
Related Articles
- Library Management System In C++ With Source Code
- School Management System In C++ With Source Code
- Mini Project for Phonebook in C with Source Code
- Employee Management System In C With Source Code
- School Billing System in C with Source Code
- Payroll Management System In C++ With Source Code
- Clinic Management System Project in C++ with Source Code
- Railway Reservation System in C++ With Source Code
Other Articles you might read also:
- Best Final Year Project for Computer Science 2021
- Best Thesis Title For IT/CS Student [Updated 2021]
- How to Make An Effective Thesis or Capstone Document
- Writing A Good Research Title For Thesis or Capstone Project
- ICHS Library Management System
- College Management System Project in Django with Source Code
- Search Filter In Django With Source Code
- Best Python Course Online | Python Course Free 2021
- ECOMMERCE IN JAVASCRIPT FRAMEWORK WITH SOURCE CODE
- To Do List Project in Python with Source Code | Video | 2020
Inquiries
If you have any questions or suggestions about club monitoring system c++, please feel free to leave a comment below.