I am trying to get a divider in my program, I got it to output however I notice their is a gap on the top. For example my code outputs:
*******************************************************************************************
Broome
CST 113 Y01
LAB
Stan
******************************************************************************************
I just want the code to output like this:
*******************************************************************************************
Broome
CST 113 Y01
LAB
Stan
******************************************************************************************
without that annoying gap. Here is my that outputs the divider:
//Output the divider to the screen
cout << setfill('*') << setw(SCREEN_WIDTH + 1) << " " << setfill(' ')
<< endl;
// Output the course heading to the screen
cout << setw((SCREEN_WIDTH + 11) / 2) << COLLEGE << endl;
cout << setw((SCREEN_WIDTH + 11) / 2) << COURSE << endl;
cout << setw((SCREEN_WIDTH + 5) / 2) << LAB_NAME << endl;
cout << setw((SCREEN_WIDTH + 15) / 2) << PROGRAMMER_NAME << endl;
//Output the divider to the screen
cout << setfill('*') << setw(SCREEN_WIDTH + 1) << " " << setfill(' ') << endl;
I am sure it is something simple I am missing