Question
In C++, I have to write my lab's information in header.h and include it in my main.cpp. How should I write and include it in
In C++, I have to write my lab's information in header.h and include it in my main.cpp. How should I write and include it in main.cpp. Here is my lab header's information:
const char PROGRAMMER[30] = "Fatima Gh";
const char CLASS[5] = "CS1B";
const char SECTION[25] = "MW: 7:30p - 10:00p";
const int LAB_NUM = 3;
const char LAB_NAME[30] = "Selection & Repetition";
/* print author, lab num and name and date
OUTPUT Class Heading*/
cout << " * PROGRAMMED BY : " << PROGRAMMER;
cout << " * " << setw(14) << "CLASS" << ": " << CLASS;
cout << " * " << setw(14) << "SECTION" << ": " << SECTION;
cout << " * LAB #" << setw(9) << LAB_NUM << ": " << LAB_NAME;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started