Command line arguments, pointers, confusion!
I am working on a program that takes command line arguments:
.exe is executed as filename Roger GoGo apple Candy
The main function takes each word from the command line and displays whether the
letters 'g' and 'e' are present in the word and in what position.
For example,
The letter G
Roger
3
GoGo
1
3
I've been thinking of different strategies to write the function:
using strcmp or the find function
I'm at a loss....
.exe is executed as filename Roger GoGo apple Candy
The main function takes each word from the command line and displays whether the
letters 'g' and 'e' are present in the word and in what position.
For example,
The letter G
Roger
3
GoGo
1
3
I've been thinking of different strategies to write the function:
using strcmp or the find function
I'm at a loss....
