I have my final exam for intro to programming in c this sunday and upon studying found two questions that confuse me. I would appreciate if someone could help me solve them, I think my answers are...
Type: Posts; User: Rawr
I have my final exam for intro to programming in c this sunday and upon studying found two questions that confuse me. I would appreciate if someone could help me solve them, I think my answers are...
The function is void. ]: I'm so confused right now. I can get the file to open and close and create itself but simply don't know how to get display to write into it.
void Display(student...
See.. I'm stumped because throughout my code I am altering the list. [adding to it, deleting to it, clearing it, ect.]
And I need to be able to save the current list, at whatever time it maybe,...
Is it possible to write a function to the file?
I guess it is by accident. The 2nd line is suppose to print the list to the file, how would I fix that?
Still isn't executing though. ):
The function call is where I am stuck.
I am a beginner in intro to c, I know what I want to do, just trying to get it to do what I want it to do is what is not working out for me. ):
How...
Hey there. I have a file function that is not working correctly and am a bit stumped by it. I'd appreciate any help.
Function prototype:
void SaveFile(student list[], FILE *database);
...
Thanks Adak, your amazing!
I'm in intro to C, haven't been taught how to debug yet, and can't figure out whats wrong with my code or how to fix it. Help plz?
No, I don't have an automatic true. Wanted to know if I was right in what an automatic true was.
I'm in intro to C, all this is new to me.
Can you give me a light example of an automatic true?
Automatic True = Returns 1 if the amount is enough to cover the cost, 0 if there is not enough?
So if I just do selection == 'p', it will take the capital and lower case?
It's not working at all.
Every time I enter my code it does a run time error half way through as soon as I get to this part,
and tells me a bunch of junk isn't int'd when it is.
I have to be...
The user selects a character that is represented by a double (cost).
The user then selects an int which represents another double (deposit).
Based off which character the user choose determines...
Here is part of my code:
char selection;
double item_cost;
double amount;
double owed;
double total;