Skip to content
Programmingoneonone
Programmingoneonone
  • Engineering Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
    • 100+ C++ Programs
  • Solutions
    • HackerRank
      • Algorithms Solutions
      • C solutions
      • C++ solutions
      • Java solutions
      • Python solutions
      • Data Structures Solutions
    • Leetcode Solutions
    • HackerEarth Solutions
  • Work with US
Programmingoneonone
Programmingoneonone

Library Management System Program in C++

YASH PAL, 10 July 201919 February 2026

Library management system program – In this post, you will learn how to make a C++ project or make a simple library management system using just C++ programming.

Introduction to the Library Management System program

This is a simple library management system that totally depends on the C++ programming language. and to fully understand this project you need to have at least some knowledge of C++ programming language.

This is a large coding project that is particularly useful for beginners who enjoy coding in C++ programming. It can also be incorporated into your own C++ programming projects.

In this project, you will learn about some new about C++ programming. we use different types of header files, classes, constructors, two and three-dimensional arrays, string functions, switch cases, goto functions, if-else statements, and loops to create this project.

And I recommended that first you understand this project with the help of the points given below and then create this project on your own conditions if you are stuck on any point then feel free to seek our code.

Feel free to customize the code of the project and recreate this project on your own conditions and use your own creative stuff and also share it with me on my social media pages. 

The Logic of the Program

This project is not possible to explain fully but I try my best to explain this project to you so you can recreate this project on your own conditions and with your handmade code. 

First, you need to print out “Welcome” and “Press any key to continue” in the middle of the page using the gotoxy() function as shown in the image given below.

library management system

When you press any key of the keyboard then you need to go to the next window where you need to print out the “welcome to my bookshop” and also need to print out six options and print out “press any of the keys given above!” as shown in the image given below.

library management system

When you select [see the list of books] by pressing key 1 – Then you need to print out the list of books or a back option and print out “press any of the keys given above!” at the bottom as shown in the image given below.

library management system

When you press any key between 1 to 5 – then you need to print out all the versions of the selected books and a back option and print out “press any of the keys given above!” at the bottom as shown in the image given below.

library management system

When you press any key between 1 to 5 then you need to print out options as shown in the image given below.

library management system

When you press the p button then you need to print out a message as shown in the image given below. and when you press any key then you need to exit from the program.

library management system

When you select [create an account] by pressing key 2 – Then you need to print out the message as shown in the image and need to scan the user name which he entered as shown in the image.

library management system

When the user press enters then you need to ask him for the set password for his account as shown in the image.

library management system

When user press Y then ask him for the password as shown in the image and when the user enters his password and press any key then you need to show him a message as shown in the next image and when user press any key then you need to go back to the options. if the user presses N then you need to go back to the options.

library management system
library management system

When user select [open an account] by pressing key 3 – Then you need to ask him for his username as shown in the image given below. and if the user name is incorrect then you need to go back to the options.

library management system

And when the user enters his username and hits enter then you need to ask him for his password. as shown in the image given below. if the password is wrong then you need to print a message as shown in the next image given below and ask him to enter the password again as shown in the next image given below.

library management system
library management system

When the user presses Y then you again ask him for the password as shown in the image given below. and if he presses N then you need to go back to the options.

library management system

After a successful login to the account, you need to print out his name at the top of the list and need to print out the six options with a back option as shown in the image. also, we need to print out a message at the bottom of the page as shown in the image.

library management system

When user select [purchas/return book] after creating an account by pressing 1 – Then you need to print out the list of all books with a back option or a message at the bottom of the page as shown in the image.

library management system

When the user selects any of the books from the given list then you need to print out all the versions of the same subjects which are available as shown in the image given below with a back option. for example, I choose ‘computer science’ book.

library management system

When a user selects any of the books then you need to print out three options as shown in the image given below.

library management system

If user press option P then you need to print out a message as shown in the image given below.

library management system

When user select [no of books you are having] after creating an account by pressing 2 – Then you need to print out the no of books that are purchased by you as shown in the image.

library management system

When user select [no of books purchased/returned by you] after creating an account by pressing 3 – Then you need to print out the list of books and no books that are purchased by you and return by you as shown in the image given below.

library management system

When user select [Add/modify password] after creating an account by pressing 4 – Then you need to ask the user for the new password as shown in the image. after entering a new password and hit enter then you need to go back to the options.

library management system

When user select [remove password] after creating an account by pressing 5 – Then you need to ask a user to remover password as shown in the image. if he presses Y then you need to print a message ” you password successfully removed”. if the user press N then you need to go back to the options.

library management system

When user select [remove account] after creating an account by pressing 6 – Then you need to print out a message as shown in the image given below. if the user press Y then you need to print out a message “your account successfully removed”. and if the user selects N then you need to go back to the options.

library management system

When user select [see no of books purchased/returned] without opening an account by pressing 4– Then you need to print out the list of books and the no of books that are purchased by all the users and returned by all the users as shown in the image.

library management system

When user select [see the list of accounts] without opening an account by pressing 5 – Then you need to print out all the user’s name who made their account as shown in the image.

library management system

When user select [quit] without opening an account by pressing 6 – Then you need to print out a message as shown in the image and when the user press any key then you need to come out from the program.

library management system

Source Code for Library Management System Program

/*****************************************************************************
                                 SOURCE CODE
*****************************************************************************/
#include<fstream.h>
#include<conio.h>
#include<string.h>
#include<process.h>
#include<stdio.h>
#include<ctype.h>
class subject
{
  public:
  char s[5][40],sub[5][5][40];
  subject()
  {
    strcpy(sub[0][0],"Physics NCERT-I");
    strcpy(sub[0][1],"Physics NCERT-II");
    strcpy(sub[0][2],"Pradeep Physics");
    strcpy(sub[0][3],"H.C.Verma\t");
    strcpy(sub[0][4],"Together With");
    strcpy(sub[1][0],"Chemistry NCERT-I");
    strcpy(sub[1][1],"Chemistry NCERT-II");
    strcpy(sub[1][2],"Pradeep Chemistry");
    strcpy(sub[1][3],"Together With");
    strcpy(sub[1][4],"P.Bahaadur\t");
    strcpy(sub[2][0],"Maths NCERT-I");
    strcpy(sub[2][1],"Maths NCERT-II");
    strcpy(sub[2][2],"Maths ND-I\t");
    strcpy(sub[2][3],"Maths ND-II");
    strcpy(sub[2][4],"R.D.Sharma\t");
    strcpy(sub[3][0],"Flemingo Textbook");
    strcpy(sub[3][1],"Vistas Textbook");
    strcpy(sub[3][2],"Flemingo ND");
    strcpy(sub[3][3],"Vistas ND\t");
    strcpy(sub[3][4],"Golden Guide");
    strcpy(sub[4][0],"Sumita Arora");
    strcpy(sub[4][1],"Together With");
    strcpy(sub[4][2],"Evergreen C++");
    strcpy(sub[4][3],"RohitQuestionBank");
    strcpy(sub[4][4],"Osborne\t");
    strcpy(s[0],"Physics\t");
    strcpy(s[1],"Chemistry\t");
    strcpy(s[2],"Maths\t");
    strcpy(s[3],"English\t");
    strcpy(s[4],"Computer Science");
  }
};
void show();
void show2();
class userlist
{
  public:
  int no;
  char users[100][50];
};
class user
{
  public:
  int sbj[5][7],totp,totr;
  char password[20];
  void showpb()
  {
cout<<"\n\n\n\n\n\n 'P' Purchase\n 'B' Back";
  }
};
void uppercase(char *);
void pur_ret(char name[]);
void notification(user &);
void setdefault(user &);
void chkusrlst();
void chkbooklst();
void showuserlist();
int crtusr();
int showbooks();
int openacc();
void namecutter(char name[]);
int main()
{
  textbackground(7);
  textcolor(0);
  chkusrlst();
  chkbooklst();
  clrscr();
  gotoxy(29,10);
  cout<<"  WELCOME  ";
  gotoxy(24,12);
  system("pause");
  mpage:
  clrscr();
  char ch;
  gotoxy(20,6);
  cout<<" Welcome To RAHUL`S BOOKSHOP \n\n '1' See the ";
  cout<<"lists of books\n '2' Create an account\n '3' Open an account";
  cout<<"\n '4' See about no. of books purchased/returned\n";
  cout<<" '5' See the list of accounts\n '6' Quit";
  show();
  ch=getch();
  switch(ch)
  {
    case '1': if(showbooks()==1)
    {
goto mpage;
    }
    break;
    case '2': crtusr();
      goto mpage;
    case '3': openacc();
      goto mpage;
    case '4': pur_ret("BOOKLIST");
      goto mpage;
    case '5': showuserlist();
      goto mpage;
    case '6': clrscr();
      gotoxy(29,10);
      cout<<"  THANK YOU  ";
      gotoxy(24,12);
      system("pause");
      return 0;
    default : goto mpage;
  }
  getch();
  return 0;
}
int crtusr()
{
  clrscr();
  char name[50],reply;
  ifstream fi;
  user u;userlist list;
  fi.open("USERLIST");
  fi.read((char *) &list,sizeof(list));
  fi.close();
  if(list.no==99)
  {
    clrscr();
    cout<<"\n\tYou can't create any account.\n\t";
    cout<<"Since the accoutn list is full,\n\tso you have to";
    cout<<" delete an account";show2();getch();
    return 0;
  }
  cout<<"\n Enter your name(max 49 characters):\n ";

  page2:
  cin.getline(name,49);
  uppercase(name);
  if(name[0]=='\0'||name[0]==' ')
  {
    clrscr();
    cout<<"\n Please enter a valid name:";
    goto page2;
  }
  for(int i=0;name[i]!='\0';i++)
  {
    if(name[i]=='\\'||name[i]=='/'||name[i]==':'||name[i]=='*'||name[i]=='?'||name[i]=='\"'||name[i]=='<'||name[i]=='>'||name[i]=='|')
    {
clrscr();
cout<<"\n Please enter a valid name:";
goto page2;
    }
  }
  fi.open(name);
  if(fi.good())
  {
clrscr();
cout<<"\n The name you have entered is already present!";
cout<<"\n Please enter another:\n ";
goto page2;
  }
  fi.close();

  page:
  clrscr();
  cout<<"\n Do you want to add a password? (y/n):";
  reply=getch();
  if(reply=='Y'||reply=='y')
  {
clrscr();
cout<<"\n Enter your password(max 19 characters):\n ";
cin.getline(u.password,19);
  }
  else
  if(reply=='N'||reply=='n')
  {
strcpy(u.password,"########");
  }
  else
  {
goto page;
  }
  setdefault(u);
  ofstream fo(name);
  fo.write((char *) &u,sizeof(u));
  fo.close();
  strcpy(list.users[list.no],name);
  list.no++;
  fo.open("USERLIST");
  fo.write((char *) &list,sizeof(list));
  fo.close();
  clrscr();
  cout<<"\n\n\tCongratulations! ";
  cout<<"You have created your account of name:\n\t'"<<name<<"'";
  show2();
  getch();
  return 0;
}
void setdefault(user &usr)
{
  int i,j;
  for(i=0;i<5;i++)
  {
    for(j=0;j<7;j++)
    {
usr.sbj[i][j]=0;
    }
  }
  usr.totp=0;
  usr.totr=0;
}
void chkusrlst()
{
  ifstream usrlst;
  usrlst.open("userlist");
  if(!usrlst.good())
  {
    ofstream fo("userlist");
    userlist list;
    list.no=0;
    fo.write((char *) &list,sizeof(list));
    fo.close();
  }
  usrlst.close();
}
void chkbooklst()
{
  ifstream booklst;int i,j;
  booklst.open("booklist");
  if(!booklst.good())
  {
    ofstream fo("booklist");
    user bklst;
    for(i=0;i<5;i++)
    {
for(j=0;j<5;j++)
{
  bklst.sbj[i][j]=1000;
}
    }
    for(i=0;i<5;i++)
    {
bklst.sbj[i][5]=0;bklst.sbj[i][6]=0;
    }
    bklst.totp=0;bklst.totr=0;
    fo.write((char *)&bklst,sizeof(bklst));
    fo.close();
  }
  booklst.close();
}
int showbooks()
{
  user guest;
  subject sb;
  char i,k,ch,ch1,ch2;
  int x,y,j;

  page1:
  clrscr();
  ifstream fi("Booklist");
  fi.read((char *) &guest,sizeof(guest));
  fi.close();
  cout<<"\n\n\n\n\n\n\n";
  for(x=0;x<5;x++)
  {
    cout<<" '"<<x+1<<"' "<<sb.s[x]<<"\n";
  }
  cout<<" 'B' Back";
  show();
  ch=getch();
  for(i='1',x=0;i<='5';i++,x++)
  {
    page2:
    clrscr();
    if(ch==i)
    {
cout<<"\n\n\n\t\t"<<sb.s[x]<<"\n\n\n\n";
for(j=0;j<5;j++)
{
  cout<<" \'"<<j+1<<"\' "<<sb.sub[x][j]<<"\t";
  cout<<guest.sbj[x][j]<<" remaining\n";
}
cout<<" 'B' Back";
show();
ch1=getch();
for(k='1',y=0;k<='5';k++,y++)
{
  if(ch1==k)
  {

    page3:
    clrscr();
    cout<<"\n\t\t\t\t"<<sb.sub[x][y];
    guest.showpb();show();ch2=getch();
    if(ch2=='P'||ch2=='p')
    {
if(guest.sbj[x][y]>0)
{
  guest.totp++;
  guest.sbj[x][5]++;
  guest.sbj[x][y]--;
  notification(guest);
}
else
{
  clrscr();
  cout<<"\n\n\tYou can't purchase this book.\n\tMake ";
  cout<<"sure that no. of copies of this book\n\tin ";
  cout<<"this shop is greater than zero.";
  show2();
  getch();
  goto page2;
}
    }
    else
    if(ch2=='B'||ch2=='b')
    {
goto page2;
    }
    else
    {
goto page3;
    }
    break;
  }
}
if(ch1=='B'||ch1=='b'){ goto page1;}
else
  {
  goto page2;
  }
    }
  }
  if(ch=='B'||ch=='b')
  {
    return 1;
  }
  else
  {
    goto page1;
  }
}
void notification(user &u)
{
  clrscr();
  ofstream f("BOOKLIST");
  f.write((char *) &u,sizeof(u));
  f.close();
  cout<<"\n\n\n\n\n\tThank you for your purchasing this book. ";
  cout<<"Next time you must create\n\tan account so that you can ";
  cout<<"purchase more than one book and also can\n\treturn books";
  cout<<" purchased from this shop.\n\n\n\n\n";
  cout<<"\tNow press any key to exit";
  getch();
  exit(0);
}
void show()
{
  cout<<"\n\n\n\n\n\tPress any of the keys given above!";
}
void show2()
{
  cout<<"\n\n\n\n\n\tPress any key to back!";
}
void pur_ret(char name[])
{
  clrscr();
  user u;
  subject s;
  ifstream fi(name);
  int i;
  fi.read((char *) &u,sizeof(u));fi.close();
  cout<<"\n\n\n\n Subject\t\tPurchased\tReturned\n\n\n";
  for(i=0;i<5;i++)
  {
    cout<<" "<<i+1<<"."<<" "<<s.s[i]<<"\t"<<u.sbj[i][5];
    cout<<"\t\t"<<u.sbj[i][6]<<"\n";
  }
  cout<<" 6.Total\t\t"<<u.totp<<"\t\t"<<u.totr;show2();
  getch();
}
int openacc()
{
  user u,bklst;
  userlist list;
  char name[50],passw[20],reply;
  ofstream fo;
  page1: clrscr();
  cout<<"\n Enter your account name:\n ";
  cin.getline(name,49);
  uppercase(name);
  ifstream fi(name);
  if(!fi.good())
  {
    pagename:
    clrscr();
    cout<<"\n\n Wrong account name!\n Enter again?(y/n)\n ";
    reply=getch();
    if(reply=='y'||reply=='Y')
    {
goto page1;
    }
    else
    if(reply=='n'||reply=='N')
    {
return 0;
    }
    else
    {
goto pagename;
    }
  }
  fi.read((char *) &u,sizeof(u));
  fi.close();
  fi.open("USERLIST");
  fi.read((char *) &list,sizeof(list));
  fi.close();
  int flag=0;
  for(int s=0;s<list.no;s++)
  {
    if(!strcmp(name,list.users[s]))
    {
flag=1;
break;
    }
  }
  if(flag==0)
  {
    strcpy(list.users[list.no],name);
    list.no++;
    fo.open("USERLIST");
    fo.write((char *) &list,sizeof(list));
    fo.close();
  }
  if(!strcmp(u.password,"########"))
  {
    goto page3;
  }

  page2:
  clrscr();
  cout<<"\n Enter your password:\n ";
  cin.getline(passw,19);
  if(strcmp(u.password,passw))
    {

    pagepass:
    clrscr();
    cout<<"\n\n Wrong password!\n Enter again?(y/n)\n ";
    reply=getch();
    if(reply=='y'||reply=='Y')
    {
goto page2;
    }
    else
    if(reply=='n'||reply=='N')
    {
return 0;
    }
    else
    {
goto pagepass;
    }
  }

  page3:
  clrscr();
  fi.open("BOOKLIST");
  fi.read((char *) &bklst,sizeof(bklst));
  fi.close();
  cout<<"\n\n\n\tWelcome "<<name;
  cout<<"\n\n\n\n '1' Purchase/return books\n '2' No. of books";
  cout<<" you are having\n '3' No. of books purchased/retutned ";
  cout<<"by you\n'4'Add/modify password\n'5' Remove password\n ";
  cout<<"'6' Delete your account\n 'B' Back";
  show();
  reply=getch();
  if(reply=='1')
  {
    subject sb;
    char i,k,ch,ch1,ch2;
    int x,y,j;

    page31:
    clrscr();
    cout<<"\n\n\n\n\n\n\n";
    for(x=0;x<5;x++)
    {
cout<<" '"<<x+1<<"' "<<sb.s[x]<<"\n";
    }
    cout<<" 'B' Back";
    show();
    ch=getch();
    for(i='1',x=0;i<='5';i++,x++)
    {
page32: clrscr();
if(ch==i)
{
  cout<<"\n\n\n\t\t"<<sb.s[x]<<"\n\n\n\n";
  for(j=0;j<5;j++)
  {
  cout<<" \'"<<j+1<<"\' "<<sb.sub[x][j]<<"\t";
  cout<<bklst.sbj[x][j]<<" remaining\n";
  }
  cout<<" 'B' Back";
  show();
  ch1=getch();
  for(k='1',y=0;k<='5';k++,y++)
  {
    if(ch1==k)
    {
      page33: clrscr();
      cout<<"\n\t\t\t\t"<<sb.sub[x][y];
      u.showpb();
      cout<<"\n 'R' Return";
      show();
      ch2=getch();
      if(ch2=='P'||ch2=='p')
      {
if(bklst.sbj[x][y]>0)
{
  u.totp++;
  bklst.totp++;
  u.sbj[x][5]++;
  bklst.sbj[x][5]++;
  u.sbj[x][y]++;
  bklst.sbj[x][y]--;
  fo.open("BOOKLIST");
  fo.write((char *) &bklst,sizeof(bklst));
  fo.close();
  fo.open(name);
  fo.write((char *) &u,sizeof(u));
  fo.close();
  clrscr();
  cout<<"\n\n\tOK! You have purchased this book";
}
else
{
  clrscr();
  cout<<"\n\n\tYou can't purchase this book.\n\tMake ";
  cout<<"sure that no. of copies of this book\n\tin ";
  cout<<"this shop is greater than zero.";
}
show2();
getch();
goto page32;
      }
      else
      if(ch2=='r'||ch2=='R')
      {
if(u.sbj[x][y]>0)
{
  u.totr++;
  bklst.totr++;
  u.sbj[x][6]++;
  bklst.sbj[x][6]++;
  u.sbj[x][y]--;
  bklst.sbj[x][y]++;
  fo.open("BOOKLIST");
  fo.write((char *) &bklst,sizeof(bklst));
  fo.close();
  fo.open(name);
  fo.write((char *) &u,sizeof(u));
  fo.close();
  clrscr();
  cout<<"\n\n\tOK! You have returned this book";
}
else
{
  clrscr();
  cout<<"\n\n\tYou can't return this book.\n\tMake ";
  cout<<"sure that no. of copies of this book\n\tyou";
  cout<<" are having is greater than zero.";
}
show2();
getch();
goto page32;
      }
      else
      if(ch2=='B'||ch2=='b')
      {
goto page32;
      }
      else
      {
goto page33;
      }
    }
  }
  if(ch1=='B'||ch1=='b')
  {
    goto page31;
  }
  else
  {
    goto page32;
  }
}
    }
    if(ch=='B'||ch=='b')
    {
      goto page3;
    }
    else
    {
      goto page31;
    }
  }
  else
  if(reply=='2')
  {
    clrscr();
    int i,j;
    for(i=0;i<5;i++)
    {
      subject sb;
      cout<<"\n "<<sb.s[i]<<"\n";
      for(j=0;j<5;j++)
      {
cout<<" "<<j+1<<". "<<sb.sub[i][j]<<"\t"<<u.sbj[i][j];
cout<<" remaining\n";
      }
    }
    show2();
    getch();
    goto page3;
  }
  else
  if(reply=='3')
  {
    pur_ret(name);
    goto page3;
  }
  else
  if(reply=='4')
  {
    clrscr();
    cout<<"\n Enter new password(max 19 characters):\n ";
    cin.getline(passw,19);
    strcpy(u.password,passw); clrscr();
    cout<<"\n\tPassword modified succesfully!";
    show2();
    getch();
    fo.open(name);
    fo.write((char *) &u,sizeof(u));
    fo.close();
    goto page3;
  }
  else
  if(reply=='5')
  {
    page35:
    clrscr();
    cout<<"\n Remove password?(y/n):";
    reply=getch();
    if(reply=='Y'||reply=='y')
    {
      strcpy(u.password,"########");
      fo.open(name);
      fo.write((char *) &u,sizeof(u)); fo.close();
      clrscr();
      cout<<"\n\tPassword removed successfully!";
      show2();
      getch();
      goto page3;
    }
    else
    if(reply=='N'||reply=='n')
    {
      goto page3;
    }
    else
    {
    goto page35;
    }
  }
  else
  if(reply=='6')
  {
    page36:
    clrscr();
    cout<<"\n Do you want to delete your account?(y/n):";
    reply=getch();
    if(reply=='Y'||reply=='y')
    {
      clrscr();
      remove(name);
      cout<<"\n\tYour account is deleted successfully!";
      show2();
      getch();
      namecutter(name);
      return 0;
    }
    else
    if(reply=='N'||reply=='n')
    {
      goto page3;
    }
    else
    {
      goto page36;
    }
  }
  else
  if(reply=='b'||reply=='B')
  {
    page3b:
    clrscr();
    cout<<"\n Do you want to exit from your account?(y/n):";
    reply=getch();
    if(reply=='Y'||reply=='y')
    {
      return 0;
    }
    else
    if(reply=='N'||reply=='n')
    {
      goto page3;
    }
    else
    {
    goto page3b;
    }
  }
  else
  {
    goto page3;
  }
}
void uppercase(char *a)
{
  for(int i=0;a[i]!='\0';i++)
  {
    a[i]=toupper(a[i]);
  }
}
void showuserlist()
{
  clrscr();
  int i;
  userlist list;
  ifstream fi("USERLIST");
  fi.read((char *) &list,sizeof(list));
  fi.close();
  for(i=0;i<list.no;i++)
  {
    cout<<"\n "<<i+1<<". "<<list.users[i];
  }
  show2();
  getch();
}
void namecutter(char name[])
{
  userlist u;
  char temp[50];
  int i;
  ifstream fi("USERLIST");
  fi.read((char *) &u,sizeof(u)); fi.close();
  for(i=0;i<u.no-1;i++)
  {
    if(strcmp(u.users[i],name)==0)
    {
      strcpy(temp,u.users[i]);
      strcpy(u.users[i],u.users[i+1]);
      strcpy(u.users[i+1],temp);
    }
  }
  u.no--;
  ofstream fo("USERLIST");
  fo.write((char *) &u,sizeof(u));
  fo.close();
}
C++ Programming Tutorials Computer Science Tutorials Programming Projects C++ Programscomputer sciencecpp

Post navigation

Previous post
Next post

Leave a Reply

Your email address will not be published. Required fields are marked *

C++ Program to print a message on the screen
Project - Library Management System Program in C++
C++ Program to calculate the salary of the servant
C++ Program to find out the grades of given marks
C++ Program to find out the greater number from given numbers
C++ Program to find out whether the given number is odd or even
C++ Program to inherit derived constructor
C++ Program to display the reverse of a given number
C++ Program to print the ASCII value of a character
C++ Program to convert temperature from Fahrenheit to centigrade
C++ Program to enter two numbers and show their sum
C++ Program to swap two numbers using third variable
C++ Program to calculate the result of students using marks
C++ game to find out a number
C++ Program to print the table of a number
C++ Program to find out the smallest number from given numbers
C++ Program to calculate the factorial of a given number
C++ Program to select an operation from a list and display its results
C++ Program to generate a random number in circles and find out the sum
C++ Program to solve arithmetic operations
C++ Program to convert the dollar into different currencies
C++ Program to display the given number in roman number
C++ Program to find out whether the given character is a vowel or not
C++ Program to use symbols as words using preprocessor Directives
C++ Program to calculate the age of a human by entering the date of birth
C++ Program to convert the upper to lower and lower to upper case letters
C++ Program to calculate the electricity bill of consumed units by the user
C++ Program to convert the small case letters to upper case letters
C++ Program to find out the nth term of its factorial
C++ Program to search for a number from a list by sequential search
C++ Program to find out the exponent of a given number
C++ Program to sort characters in ascending order by using bubble sort
C++ Program to display the text in different colours
C++ Program to convert the decimal number into a binary number
C++ Program to find out the day of the given date, starting from Jan 2001
C++ Program to find out the maximum number from an array
C++ program to display the ASCII values
C++ Program to calculate the area of a room
C++ Program to print students' details using a structure
C++ Program to display a stopwatch on screen for 2 minutes
C++ Program to print a diamond pattern of stars
C++ Program to display the pattern of alphabets
C++ Program to find out the factors of a given number
C++ Program to display the sum of mathematics series
C++ Program to create a game [Find Hidden Word]
C++ Program to display the rectangle on the screen
C++ Program to sort the numbers using selection sort
C++ Program find out whether the given number is prime or not
C++ Program to sort the numbers using insertion sort
C++ Program to display a word in the middle of the screen
C++ Program to create a puzzle game
C++ Program to find out Armstrong numbers from 1 to 500
C++ Program to compare two strings
C++ Program to calculate the number of characters in the given string
C++ Program to calculate the standard deviation of a given range
C++ Program to open a file in binary mode and then get data in that file
C++ Program to use the setw function
C++ Program to create a file in binary mode and then put data in that file
C++ Program to display the Fibonacci series using a function
C++ Program to count the characters, tabs, and vowels in a line from a file
C++ Program to find out the raise to a power using recursion
C++ Program to copy data from one file to another file
C++ Program to find out the prime numbers from a given range
C++ Program to count the number of lines in a file
C++ Program to calculate the square root of a given number
C++ Program to copy a string into a file, then read it and display it on the screen
C++ Program to print the values of a pointer character array
C++ Program to create a file in text mode, write and then read data from the file
C++ Program to access the value of a variable using a pointer
C++ Program to use a friend class
C++ Program to display the address of a variable
C++ Program to display the distance in feet and inches
C++ Program for Matrix Multiplication
C++ Program to use a destructor
C++ Program to create user define header file
C++ Program to calculate the multiplication of two numbers without using the * symbol
C++ Program to find out the smallest number from the given numbers
C++ Program to search a record from a file
C++ Program to search a record from a binary file
C++ Program to open a file in binary mode and count the total records
C++ Program to inherit the class
C++ Program to overload binary operators
C++ Program to overload [] binary operator
C++ Program for binary operator overloading
C++ Program to display the file using the command line of the compiler
C++ Program to update the record in binary mode
C++ Program to search the record in binary file
C++ Program to display a message by using multiple virtual functions
C++ Program to display a message by using a virtual function
C++ Program to multiply three numbers using a friend function
C++ Program to override a function

Programmingoneonone

We at Programmingoneonone, also known as Programming101 is a learning hub of programming and other related stuff. We provide free learning tutorials/articles related to programming and other technical stuff to people who are eager to learn about it.

Pages

  • About US
  • Contact US
  • Privacy Policy

Practice

  • Java
  • C++
  • C

Follow US

  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2026 Programmingoneonone | WordPress Theme by SuperbThemes