i'm trying to deliver parameters for a program with the command line. I want, that the program is working as shown now: - start the program with parameter "program.exe " - then the should be useable in the programm How can i approach this thing?
Here is the essential part of my programm:
int main(){
int length;
unsigned int i=0;
length=strlen(word);
for(i=0;i<length;i++) {
printf("%d",word[i]);
}
}
And i wanted to add this word[] parameter via command line. Thanks!