Choosing between strings
-
Thanks for your help answering my past queries. If I have an array of strings:- char*sss[10]; sss[0]="cow"; sss[1]="eland"; sss[2]="kudu"; ....etc.... please how in a function can I display these strings and ask the user to choose one of these strings and get the function to return the index number of the chosen string? I could write a function from scratch; but is there such a standard library function already?
-
Thanks for your help answering my past queries. If I have an array of strings:- char*sss[10]; sss[0]="cow"; sss[1]="eland"; sss[2]="kudu"; ....etc.... please how in a function can I display these strings and ask the user to choose one of these strings and get the function to return the index number of the chosen string? I could write a function from scratch; but is there such a standard library function already?