echocat
This assignment is worth 100 points total.
Please read this assignment carefully and follow the instructions EXACTLY.
Do NOT create any additional subdirectories. Modify the skeleton code already provided to you in the top level directory—the only new file in your submission should be your Makefile.
Ensure your Makefile builds your executable when you run make
.
Please refer to the lab submission instruction for other requirements.
Make sure your code runs valgrind clean (without memory errors or leaks). You can run valgrind like this:
valgrind --leak-check=yes <your program>
Create a Makefile to build echocat
.
Compiler must be g++
.
Compiler flags must include -g -Wall -std=c++17
, to include debugging
symbols, enable all warnings, and specify C++17.
Must produce the executable echocat
upon running make
.
Should have a clean
target which removes any built binary files.
echocat
programImplement the concat_args
function, defined in echocat.cpp
.
You should traverse the argv
array of C strings, construct a single
concatenated std::string
object from them, and return this string.
You may NOT modify the main
function.
$ ./echocat super cali fragilistic expialidocious
supercalifragilisticexpialidocious
–
Good luck!
Last updated: 2023-05-23