Wow, that's a fantastic attitude.
Type: Posts; User: towely
Wow, that's a fantastic attitude.
Aha!
This was my problem, the code works perfectly now. I should have realized that I needed to search via the correct order of m/d/h/m, not via the order the arrays are in. Thanks for the tip!
...
Sure, it looks nicer, but isn't the code that I have technically a valid way to do what I want to accomplish? I'm not a computer science student, and there's a good chance I will never touch C...
I read the link on structures, and I understand what they are now, but I don't understand how using those will make my task any easier. I really think I'm pretty close to having this problem solved,...
I'm continuing on the code discussed in this thread:
http://cboard.cprogramming.com/c-programming/139377-confused-parsing-csv-txt-file-strtok-fgets-sscanf.html
I have fourteen arrays populated...
Sounds good, thanks.
Aha! changing %lf to %f in sscan() fixed it. Thanks! I'm glad to know that I had the right idea from the start, and it was just minor things keeping my output from being correct.
I'll look into...
Hmm, I changed the code as directed, and the output is still wrong....
printf("%f\n",a1[2]);
printf("%f\n",a2[2]);
on the same line as before outputs these:
...
Sorry about the indentation problems.
Ah, I can't believe I forgot to intialize i to 0. I wasn't aware that paths needed two slashes, thanks for that. I figured I was missing something trivial,...
Hi everyone.
I'm working with a comma-delimited text file (in this example, it's abc.txt), with the following structure:
299, 26, 10, 7, 45, 87.688493, 112.055298, 54697, 3362, 1992, 2569,...
EDIT: The program worked fine all along. I was just using incorrect input! Sorry, you can delete this thread.
I'm attempting to create a computer program that prints a triangle of digits, as well as a "ruler" that measures the user specified width of the screen, showing the width in digits. The ruler must...