I've been working on this program for a while. I'm pretty new to C++ and to say the least it isn't my favorite.
Basically it is just a program that enters a college student/staff/faculty person's info and then returns all the info when prompted depending on what number you enter. In this instance it not meant to accept more than 8 people.
The program has a header file that includes a class and strings blah blah. For some reason if I enter a person's info and then enter "4" the information I entered will not display!!! (feelings of anger!). Can anyone assist me?
#ifndef Headerfile_h
#define Headerfile_h
#include<iostream>
using namespace std;
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
#include "Headerfile.h"
int main(void)
{
witperson person[8];
for (int index = 0; index < 8; index++)
{
int s;
cout << "Enter 1 to add a student, 2 to add a faculty member, 3 to enter a staff member, 4 to display the present list, or 0 to quit: ";
cin >> s;
cout << endl;
That works great! But the only problem is that part of problem is to make certain data private and public . So the strings are meant to be private data.