How do I sort arrays structures? I just need a quick explanation or small ex. to lead me in the direction.
*/
This program requires three command arguments: The text file name,
...
Type: Posts; User: Jaxtomtom89
How do I sort arrays structures? I just need a quick explanation or small ex. to lead me in the direction.
*/
This program requires three command arguments: The text file name,
...
Figured it out. Thanks
This project requires me to take an input file and scan its information into an nested array structure. So far I have finally been able to fill the nested structure after converting the file's...
Thank you all for the replies. I ended up using Jesius's reply code because it's what we covered in class and is allowed on projects. It's working like a charm.
Hello. I am working on a project in which I need to take data from an input file and scan it into a array structure. The structure contains a nested structure. The BDATE structure is nested within...
At msh: Thanks for looking at it again. I found it out as soon as I took a second look at the loop.
Swapped placements of randNum expression and printf, and set printf to print randNum instead.
To msh: Thank you for looking at it. I know it was a lot. The program is setup so that zero is counted as an even too. That's what our teacher wants. The problem is that counts are still off. ...
// functon genRandom receives the four parameters to use for the pseud-random
// number generator. It generates the numbers, prints them, and calls
// the subfunction addToCounts for specific...
Thank you for all the help. I was able to finish this part of the program with the help.
Cheers!
O haha! You are a savior! Our teacher never taught us about using 'if statements' and 'functions calls' together. I didn't realize putting the function in the 'if' actually sent a call too. This...
The program will ask for inputs regardless what I input. The error messages do come up if input is incorrect though. So what I think is happening is that the subfunctions are being called multiple...
Hello, I am building the following program. It compiles but I am not getting exactly what I want. I know I must be using the if statements illogically. I have stared and worked on this project for...
Thanks, I love you (no homo) :)
I would never have noticed this and I've been working on this project for many hours. I will play around with this.
Thanks again. This is the code. Trying to do the one subfunction correctly before I do the rest.
/* This program will prompt the user for a seed value, a lower bound value,
an...
It's funny because I've tried this already and it does compile, but the program will crash when I enter input. "*pSeed" causes it to crash which makes no sense to me.
Thank you for the quick...
Hello. I'm in an introductory computer science class and so far it's been okay. With our most recent project, we've been told to come up with a program that prompts the user for four integers that...