If you want to create a string from the passed input parameters, you can also add character pointers to create the string yourself
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char* argv[])
{
string passedValue;
for(int i = 1; i < argc; i++)
passedValue += argv[i];
return 0;
}
source
share