- Put your program in a file called mysh.cpp.
( 95pts) Write a C++ program , "mysh.cpp". This program should:
You should test your program and submit only the source code separately from the remaining questions.
Hints:
#include <string> // for C++-strings
#include <string.h> // for C-string functions
char * string2cstr(const string& s)
{
char * result;
result = strdup( s.c_str() );
return result;
}