Posts

Showing posts with the label source

Library management system project c++ source code for beginners

Image
INTRODUCTION: This program is coded in c++  programming language. program has used the concepts of mainly structures, loops, functions and more. It is coded in a way to manage library system where data of books and user are store and manage without file handling. source code:  #include<iostream> using namespace std; struct bookslibrary {     string bookname;     string authorname;     int id;     string flag;     int price; }; struct userlibrary {     string username;     int id;     int phonenumber;     string fine;     string issueS; }; struct borrowlibrary {  string username;  int idb;  string issue;  string due;   string fine;   string bookname;   int idu;   }; bookslibrary b[100]; int cont =0; userlibrary u[100]; int info =0; borrowlibrary l[100]; int data=0; // adding book information void addbookinfo() {     cout << "enter book name" << endl;     cin >> b[cont].bookname;     cout << "enter author name" << endl;     cin >

C++ Project for beginners | Green house management system source code

Image
 Introduction: This program is written in C++ that allows to manage a greenhouse according to authorities given to a particular person. Each function in this program has a specific function.  In this program concept of arrays,functions and other basic concepts have been used. #include <iostream> #include <string> using namespace std; const int maxplants = 20; //list of plants void list(string plants[],int & nplants) {              for (int i = 0; i < nplants; i++) {             cout << "Plant " << i + 1 << ": " << plants[i] << endl;         }     } // Adding plants void addplants(string plants[], int& nplants) {     string choice;     do {         if (nplants >= maxplants) {             cout << "You can't add more plants." << endl;             break;         }         string plant;         cout << "Enter the name of a new plant: ";         cin >> plant;         pl