Okay, I was trying to write a program that will take in command line inputs of character or strings, separated by spaces. Ignore spaces, however i am going to want to be able to separate a and b from each other, or c and d from each other. So when I output *arg[1], i just get whatever the argv begins with, I'm stumped on how to output something like character b from the command line input pointed by argv.
If theres an easier way to do this, i can do that also, but I decided to use this one. I tried searching around and couldn't find exactly what I was looking for. Later, I want to add the characters to a stack. Please take a look.
Command line: DRIVER ab cd
outputs: a
int main(int argc, char *argv[])
{
char temp[5];
temp = *argv[1];
cout << temp << " " << "\n";