pkirk25 wrote:
int main(int argc, char *argv[])
{
int z = 0;
cout << *argv[2] << endl;
Neither 'cout' nor 'endl' are defined. Did you forget to include
a proper header? BTW, your program has undefined behaviour if
the number of arguments is less than 3.
return z;
}
tester hi james outputs the letter 'j'
How can I get ti to outout the whole word?
Drop the asterisk in the output statement.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask