Well I know this might not quite be the place for such a question...but I feel that this forum contains people a hell of a lot more competent than just about anything else out there.
I don't even...
Type: Posts; User: Beast()
Well I know this might not quite be the place for such a question...but I feel that this forum contains people a hell of a lot more competent than just about anything else out there.
I don't even...
I want to input a recursive sequence into a program for the computer to calculate it, but I am having some trouble doing so.
Does anyone have any bright ideas to represent this sequence?
a_n =...
Bah I thought I figured it out, but I ended up corrupting half of the program when I ran it.
Keep us updated on your progress if you must submit it tonight.
I will get off work soon, so post...
Ah, sorry. I was going to post that, but I forgot in my haste.
The program reads in names and numbers from a text file. These names and numbers are used in order to deliniate what flight and what...
This is a very interesting program Gecko, especially for someone like me who is learning binary trees at this moment as well.
Can you post your finished code here to look at it?
Thanks.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_NAME 30
void InputFile (char* input_file);
void BookingSystem (char* input_file);
struct passenger
Ah I understand now.
Thank you so much andyhunter, I really appreciate it.
It's much clearer now.
Thanks for the response.
I agree, the program has a poor design concept to it at times. I will fix this later.
However when I go to fix the fopen() problem, it just crashes. I have not yet...
I'm sorry man, that was rather vague.
I fixed it so it was understandable.
Well it's inexplicable at least to me.
This program reads from a file, which I have attached, and then prints out information.
For some strange, strange reason, the linked list prints out the...
Lol yea, I fixed that soon after. Thanks.
Thanks I hadn't noticed that.
But even when I have that part commented out and only have the first line included, it still gives me an error.
Ah it's been a while since I coded. Anyway, I'm trying to do a program, and am curious as to why this doesn't work:
#define MONTH 9
#define DAY 17
#define YEAR 04
#include <stdio.h>
Dear God man, use some indentations.
Before learning pointers, you need to learn to make your code readable.
Include whitespace (press enter) between statements, or in order to separate blocks...
And be cool, stay in school. :cool:
Thanks man, I will mull that over.
Lol yea, I just noticed it when I tried to compile it. Stupid mistake.
It's the size of the pointer passed, not the string itself.
Here is the updated function:
void gstring /*Sexy*/ ...
Eh, because of my lack of parenthesis? Missed that in my haste.
I thought that calling fgetc() a bunch of times wouldn't be as efficient as one solid call to fgets().
Thanks for Quzah mode, he...
I am trying to make a safe input function, since it's tedious to keep writing a bunch of crap with fgets() every time you want to get some input from the user safely.
This is what I have written...
I assume that he wants to count how many elements there are in each individual array, since he is not trying to summate the elements themselves and has a counter that increments by one at each pass....
Well you are always going to get the same values, because the statement (array1[i]) or (array2[i]) is always going to be true, since that will always generate a nonzero value.
Therefore each time...
The FAQ was excellent. Thanks.
Thank you for giving the code and explanation.
I understand the second portion of the post, that the reason for a different address is because it's a different variable. But why is it the same in...
Fair enough.
I won't be asking beginner questions forever though. :cool:
I appreciate you saying to give me a second chance Emmanuel.
But I am not trying to deceive anyone. My teacher was a crappy one and one of the reasons why I left (besides the fact that I was a...