No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
whenever I enter 0 in the string value to quit the loop it does not work PLEASE HELP ME!! #include<iostream> #include<string> #include<fstream> #include<cctype> #include<stdlib.h> using namespace std; struct Student { string netID; string firstName; string lastName; int maxCourses; int numCoursesEnrolled; }; const int SIZE = 100; int readStudentData(string, Student *[], … |
|
#include<iostream> #include<iomanip> #include<string> #include<cctype> #include<stdlib.h> using namespace std; struct Product { string PLU_Code; string Fruit_name; int SalesType; double UnitPrice; double InventoryLevel; }; const int SIZE = 100; int populateInventory(Product *[], int); bool validatePLU(const string &); int main() { /* (Normal way of allocating ) Product *NumArray; NumArray = new Product[SIZE]; … |