Hello everyone. I am new to programming and need help. Much of this program was built with my teacher and almost everything works. I am running into a problem with my IF-ELSE statement that is in cs_cis class. I noticed you will need to expand the window of this post for the program to format correctly. Whether I put true or false in the following statement in main(): cs_cis csStudent1(false, 1001); it outputs "CS Major" which you can see is in the IF statement in the cs_cis class. No matter true or false it will output "CS Major" and won't output "CIS Major" for false for example.
My terminology is still weak so please explain well if you can answer my question.
#include <string.h>
#include <string>
#include <iostream>
using namespace std;
class StudentInfo // This class works with the students first, last name and Id
{
int ID; // Private
string firstName;
string lastName;