My apologies Walt, its a 1D array. What I was meaning to say is that I have an array of the number of random strings assigned and inside the indexes actually list the random strings themselves. I...
Type: Posts; User: chauncey005
My apologies Walt, its a 1D array. What I was meaning to say is that I have an array of the number of random strings assigned and inside the indexes actually list the random strings themselves. I...
It is still pretty early for me, I apologize about the english. What I meant to say is that the code fills the array with random capital letters that are already sorted alphabetically by the first...
Sorry about that guys. It feels the array with random characters that are already sorted alphabetically be the first character.
char *RandomString(int length){
int i, size;
char...
Does anyone know how I could search a 2D array using binary search and if so explain each part of the code for me? I would appreciate it very much. Thank you!
That works, but unfortunately we cant use strcmp() or puts()...but thanks anyways!
Thank you, I can generate the random strings and I tried the code for the StringSort below, however, when I try to sort them I am now receiving the error: segmentation fault(coredump). Ive tried...
Good point, Walt! Thanks for showing me that...I wouldnt have even noticed it!
What if I wanted to put each of those strings in dictionary order?
i.e.
string[1] = dog
string[2] = dogo
string[3] = efgjoz
string[4] = ijs
...
The below code doesnt work and I have been...
Holy $h--, it worked....Thanks a lot Dave, I've been working on that for a long, long time!!!
Im using the cc compiler on UNIX system.
I think that I have the definition of segmentation fault covered and why other people are receiving this error when I checked on past posts. However, I have no idea why Im getting it....can someone...
Thanks prelude! Is it possible to do this instead?:
#include <ctype.h>
#include <limits.h>
void RandomString ( char *string, int argc )
/* Or in place of int argc, use int num */
Will someone please help me out. I've been working on this code for 6 hours and am still lost! I am supposed to use 2 command line arguments to determine the number of strings to be used in this...
Actually, the fflush() was my teacher's idea, but thank you for letting me know, that just makes me doubt him that much more!
I just used the %s%s in the first printf() statement so it would look more clear and the assignment doesnt ask specifically for pointers!
The code reads in the number of letters as well as the capital letter itself, however, it doesnt create the random array or search and print. Sorry about that...Im just looking for help, not someone...
Hello all! I am hoping someone can help me with this because my professor wont get back to me(he lacks programming skills, I believe). Anyways, I am supposed to create an array with a user...
Hello all,
Is there a way to move numbers in a circular motion using pointers? For example, if I wanted the numbers 12345 to shift and be 23451? Is it valid? Thank you!
I am having problems with my code. I thought it was right, but the compiler disagrees with me. My code is posted below along with the errors that I am receiving. Any help would be greatly appreciated...