Write a program using Emac editior that consists of two C++ source files and a header file
Question:
Write a program using Emac editior that consists of two C++ source files and a header file (.h file). The first C++ file contains the main() routine and the second file contains a C++ function. The function prototype should be included in the header file. From within main(), you must display the count of command-line arguments to stdout. Further, you must display the value of each command-line argument to stdout. Finally, you must call the procedure that is defined in the second file. From within the procedure defined in the second file, you must display a log message that states you are inside the procedure. This log message must be sent to stderr. You are then to create a shell script for compiling your code. The script will individually compile each file and generate the intermediate object file. Once the object files are created, the script will call the linker and link the object files into an executable. Your shell script should echo what it is doing at each step to stdout. You are then to create a second shell script that will run your program several times with varying command line arguments. Each time you call your program, you should append the stdout to an output file called stdout.log and you should append the stderr to an output file called stderr.log. Your shell script should echo what it is doing at each step to stdout.
Intermediate Accounting Reporting and Analysis
ISBN: 978-1285453828
2nd edition
Authors: James M. Wahlen, Jefferson P. Jones, Donald Pagach