Posts

Showing posts with the label blog computer

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