Hi,
After splitting a string in to tokens using strtok ,how can I get the tokens in to different arrays. for example
char str[] = "now # is the time for all # good men to come to the # aid of their country";
char delims[] = "#";
char *result = NULL;
result = strtok( str, delims );
while( result != NULL ) {
printf( "result is \"%s\"\n",...
User Profile
Collapse
-
How would I store tokens in different arrays ??
-
computing a numeric key from a data index item , (hash tables)??
Hi,
am trying to create a hash tables of words and their signatures
eg
acert crater , here acert is the index while the crater is the value.
so how would I computer an int key from a data index item ?
Thank you. -
A character pointer.
This is what I did
char s[] = " This is a boy";
char *result;
result = strtok(s," ");...Leave a comment:
-
Putting a word into an array of letters ??
Hi,
I split a string in to tokens , but now I need to put each token(word) into array of letters so that I arrange them alphabetically. How would I do that? Thanks a lot. -
-
putting letters of a word in alphabetical order ?
Hi,
How would I write a function that gets leeters of a word in to alphabetical order using ANSI C? I heard something about using ascii but am still stuck . Thank you. -
putting letters of a word in alphabetical order ?
hiiiiiiiiiiiiii iiiiiiiiiiiiii
No activity results to display
Show More
Leave a comment: