C++ Project for beginners | Green house management system source code
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; ...